diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-19 00:52:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-19 00:52:00 +0200 |
commit | 775c1de0891da2d3b16efada5ee8b99f96d045a1 (patch) | |
tree | 3d0c015075c215ca4200b0c165f882195d0ca7e8 /include/osmocom | |
parent | b71627b1f74f8c7368fd132f7eec3b2dc26d165f (diff) |
channel: add subtype ID to osmo_chan_create
This adds the possibility to specify the variant of the channel.
This was discussed during the osmocom workshop. Harald wanted a way
to say if the channel is using TCP, UDP, DADHDI and so on.
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/netif/channel.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/osmocom/netif/channel.h b/include/osmocom/netif/channel.h index f044605..1abc828 100644 --- a/include/osmocom/netif/channel.h +++ b/include/osmocom/netif/channel.h @@ -11,6 +11,12 @@ enum { OSMO_CHAN_MAX, }; +/* channel subtypes */ +enum { + OSMO_SUBCHAN_STREAM, + OSMO_SUBCHAN_MAX, +}; + struct osmo_chan; struct msgb; @@ -19,6 +25,7 @@ struct osmo_chan_type { char *name; int type; + int subtype; int datasiz; int (*create)(struct osmo_chan *chan); @@ -36,7 +43,7 @@ struct osmo_chan { void osmo_chan_init(void *ctx); -struct osmo_chan *osmo_chan_create(int type); +struct osmo_chan *osmo_chan_create(int type, int subtype); void osmo_chan_destroy(struct osmo_chan *c); int osmo_chan_open(struct osmo_chan *c); |