From 7ff7a5cd6da3ce40b4cb9daea90948a1ec1495e1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 11 Feb 2013 22:49:27 +0100 Subject: osmux: allow to pass data to osmux_deliver --- include/osmocom/netif/osmux.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3