From 408be3638b3cd84462632ae8fe0b92e93064ca57 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 9 Sep 2017 20:57:13 +0300 Subject: procqueue: add item type enum (source, sink, proc) There are currently three types of prcessing queue items: - source (file, alsa, rtp) - proc (format, codec) - sink (file, alsa, rtp) Let's assign corresponding type for each item. This would facilitate logging and the queue checking. --- include/osmocom/gapk/procqueue.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/osmocom/gapk/procqueue.h') diff --git a/include/osmocom/gapk/procqueue.h b/include/osmocom/gapk/procqueue.h index dfd0db1..f5b8d53 100644 --- a/include/osmocom/gapk/procqueue.h +++ b/include/osmocom/gapk/procqueue.h @@ -24,6 +24,12 @@ #include +enum osmo_gapk_pq_item_type { + OSMO_GAPK_ITEM_TYPE_SOURCE, + OSMO_GAPK_ITEM_TYPE_SINK, + OSMO_GAPK_ITEM_TYPE_PROC, +}; + struct osmo_gapk_pq_item { /*! input frame size (in bytes). '0' in case of variable frames */ unsigned int len_in; @@ -45,6 +51,8 @@ struct osmo_gapk_pq_item { /*! \brief link to a processing queue */ struct llist_head list; + /*! \brief type of item */ + enum osmo_gapk_pq_item_type type; }; #define VAR_BUF_SIZE 320 -- cgit v1.2.3