From c05485c90c17e4fafbf71867e223a6e148c2ca43 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 19 Aug 2012 00:23:21 +0200 Subject: channel: use linked list instead of array of existing channels This also adds osmo_chan_init() that needs to initialize the channel infrastructure. --- include/osmocom/netif/channel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom/netif') 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); -- cgit v1.2.3