aboutsummaryrefslogtreecommitdiffstats
path: root/examples/channel
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-19 00:52:00 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2012-08-19 00:52:00 +0200
commit775c1de0891da2d3b16efada5ee8b99f96d045a1 (patch)
tree3d0c015075c215ca4200b0c165f882195d0ca7e8 /examples/channel
parentb71627b1f74f8c7368fd132f7eec3b2dc26d165f (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 'examples/channel')
-rw-r--r--examples/channel/abis_ipa_client.c2
-rw-r--r--examples/channel/abis_ipa_server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/channel/abis_ipa_client.c b/examples/channel/abis_ipa_client.c
index c560e9f..3e24b62 100644
--- a/examples/channel/abis_ipa_client.c
+++ b/examples/channel/abis_ipa_client.c
@@ -58,7 +58,7 @@ int main(void)
osmo_chan_init(tall_example);
/* create channel. */
- chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_CLI);
+ chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_CLI, OSMO_SUBCHAN_STREAM);
if (chan == NULL) {
LOGP(DEXAMPLE, LOGL_ERROR, "Cannot create A-bis IPA client\n");
exit(EXIT_FAILURE);
diff --git a/examples/channel/abis_ipa_server.c b/examples/channel/abis_ipa_server.c
index 27eebc7..a1b2ffd 100644
--- a/examples/channel/abis_ipa_server.c
+++ b/examples/channel/abis_ipa_server.c
@@ -55,7 +55,7 @@ int main(void)
osmo_chan_init(tall_example);
/* create channel. */
- chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_SRV);
+ chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_SRV, OSMO_SUBCHAN_STREAM);
if (chan == NULL) {
LOGP(DEXAMPLE, LOGL_ERROR, "Cannot create A-bis IPA server\n");
exit(EXIT_FAILURE);