diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-01 15:15:45 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:20:59 +0100 |
commit | 304fa73421a7c6ca5dcf36145f40c77af7df1de7 (patch) | |
tree | 990fa6ad9ff7cb176fa5713a4f3f8a7f35b54efe /include | |
parent | 3be9c7ae3c22f3e91c4e54b57a07b722dd4fb73f (diff) |
procqueue: store output buffers inside queue items
An output buffer belongs to its queue item, so it will be more
correctly to store its pointer inside the osmo_gapk_pq_item.
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gapk/procqueue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/gapk/procqueue.h b/include/osmocom/gapk/procqueue.h index b4aa857..6921b51 100644 --- a/include/osmocom/gapk/procqueue.h +++ b/include/osmocom/gapk/procqueue.h @@ -29,6 +29,8 @@ struct osmo_gapk_pq_item { unsigned int len_out; /*! opaque state */ void *state; + /*! buffer for output data */ + uint8_t *buf; /*! call-back for actual format conversion function * \param[in] state opaque state pointer * \param[out] out caller-allocated buffer for output data @@ -45,7 +47,6 @@ struct osmo_gapk_pq_item { struct osmo_gapk_pq { unsigned n_items; struct osmo_gapk_pq_item *items[MAX_PQ_ITEMS]; - void *buffers[MAX_PQ_ITEMS + 1]; }; /* Processing queue management */ |