aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-09 20:43:28 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-31 12:20:59 +0100
commit2286a36ace915864bce935f49374f12cb9384e5d (patch)
tree80413e58e3badca18066c940f897f833984c6f10 /include
parent262ae0f98f21e91ff21f2082892f75a778d077a5 (diff)
procqueue: add human-readable name to osmo_gapk_pq
Since this change, every processing queue may optionally have an associated human-readable name. If name is not required, NULL should be passed to the osmo_gapk_pq_create().
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gapk/procqueue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/gapk/procqueue.h b/include/osmocom/gapk/procqueue.h
index 9b049a5..dfd0db1 100644
--- a/include/osmocom/gapk/procqueue.h
+++ b/include/osmocom/gapk/procqueue.h
@@ -52,10 +52,13 @@ struct osmo_gapk_pq_item {
struct osmo_gapk_pq {
struct llist_head items;
unsigned n_items;
+
+ /*! \brief human-readable name */
+ const char *name;
};
/* Processing queue management */
-struct osmo_gapk_pq *osmo_gapk_pq_create(void);
+struct osmo_gapk_pq *osmo_gapk_pq_create(const char *name);
int osmo_gapk_pq_prepare(struct osmo_gapk_pq *pq);
int osmo_gapk_pq_execute(struct osmo_gapk_pq *pq);
void osmo_gapk_pq_destroy(struct osmo_gapk_pq *pq);