aboutsummaryrefslogtreecommitdiffstats
path: root/src/pq_rtp.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-09 21:44:16 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:20:59 +0100
commit459791c488c6b66a5cd0d7cff9392a7a0b8ca733 (patch)
treeac36081f2321258247c101d53eeac7744a8e403c /src/pq_rtp.c
parent408be3638b3cd84462632ae8fe0b92e93064ca57 (diff)
procqueue: add item catedory and sub-category fields
This change adds two meta-information fields to the processing queue item structure. Both of them will be used for more detailed logging and for the human-readable processing queue description.
Diffstat (limited to 'src/pq_rtp.c')
-rw-r--r--src/pq_rtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pq_rtp.c b/src/pq_rtp.c
index 799b324..faab6c8 100644
--- a/src/pq_rtp.c
+++ b/src/pq_rtp.c
@@ -226,6 +226,8 @@ pq_queue_rtp_op(struct osmo_gapk_pq *pq, int udp_fd, unsigned int blk_len, int i
item->type = in_out_n ?
OSMO_GAPK_ITEM_TYPE_SOURCE : OSMO_GAPK_ITEM_TYPE_SINK;
+ item->cat_name = in_out_n ? "source" : "sink";
+ item->sub_name = "rtp";
item->len_in = in_out_n ? 0 : blk_len;
item->len_out = in_out_n ? blk_len : 0;