aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gapk/procqueue.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-09 20:57:13 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:20:59 +0100
commit408be3638b3cd84462632ae8fe0b92e93064ca57 (patch)
tree6578b8cd0d8225d8a6fcd28090b2d1f759db794e /include/osmocom/gapk/procqueue.h
parent2286a36ace915864bce935f49374f12cb9384e5d (diff)
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.
Diffstat (limited to 'include/osmocom/gapk/procqueue.h')
-rw-r--r--include/osmocom/gapk/procqueue.h8
1 files changed, 8 insertions, 0 deletions
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 <osmocom/core/linuxlist.h>
+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