aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/osmux.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-02-11 22:49:27 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-02-11 22:49:27 +0100
commit7ff7a5cd6da3ce40b4cb9daea90948a1ec1495e1 (patch)
tree8d40591bb53e46f2684afedb998b5ee481c05944 /include/osmocom/netif/osmux.h
parent0f1f41411f4cc4c0dda2946b4077265e9e8d0a37 (diff)
osmux: allow to pass data to osmux_deliver
Diffstat (limited to 'include/osmocom/netif/osmux.h')
-rw-r--r--include/osmocom/netif/osmux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h
index 7865e50..20b6123 100644
--- a/include/osmocom/netif/osmux.h
+++ b/include/osmocom/netif/osmux.h
@@ -43,8 +43,9 @@ struct osmux_hdr {
struct osmux_in_handle {
uint8_t osmux_seq;
uint8_t batch_factor;
- void (*deliver)(struct msgb *msg);
- char *data; /* internal data */
+ void (*deliver)(struct msgb *msg, void *data);
+ void *data;
+ char *internal_data; /* internal data to store batch */
};
#define OSMUX_MAX_CONCURRENT_CALLS 8