aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-19 00:23:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-19 00:49:20 +0200
commitc05485c90c17e4fafbf71867e223a6e148c2ca43 (patch)
tree7f0c41537777a4ac6d20a4559069a7948587b989 /include/osmocom
parent557e5c127a5b6cd33deb85d047dba36e2c43a862 (diff)
channel: use linked list instead of array of existing channels
This also adds osmo_chan_init() that needs to initialize the channel infrastructure.
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/netif/channel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/netif/channel.h b/include/osmocom/netif/channel.h
index 20be992..baeb2c8 100644
--- a/include/osmocom/netif/channel.h
+++ b/include/osmocom/netif/channel.h
@@ -14,6 +14,8 @@ struct osmo_chan;
struct msgb;
struct osmo_chan_type {
+ struct llist_head head;
+
char *name;
int type;
int datasiz;
@@ -31,6 +33,8 @@ struct osmo_chan {
char data[0];
};
+void osmo_chan_init(void);
+
struct osmo_chan *osmo_chan_create(void *ctx, int type);
void osmo_chan_destroy(struct osmo_chan *c);