aboutsummaryrefslogtreecommitdiffstats
path: root/examples/channel
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 /examples/channel
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 'examples/channel')
-rw-r--r--examples/channel/abis_ipa_client.c3
-rw-r--r--examples/channel/abis_ipa_server.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/channel/abis_ipa_client.c b/examples/channel/abis_ipa_client.c
index 8ff0c11..2ddc434 100644
--- a/examples/channel/abis_ipa_client.c
+++ b/examples/channel/abis_ipa_client.c
@@ -54,6 +54,9 @@ int main(void)
osmo_init_logging(&example_log_info);
log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
+ /* initialize channel infrastructure. */
+ osmo_chan_init();
+
/* create channel. */
chan = osmo_chan_create(tall_example, CHAN_ABIS_IPA_CLI);
if (chan == NULL) {
diff --git a/examples/channel/abis_ipa_server.c b/examples/channel/abis_ipa_server.c
index 3019e71..1a9d2ed 100644
--- a/examples/channel/abis_ipa_server.c
+++ b/examples/channel/abis_ipa_server.c
@@ -51,6 +51,9 @@ int main(void)
osmo_init_logging(&example_log_info);
log_set_log_level(osmo_stderr_target, LOGL_DEBUG);
+ /* initialize channel infrastructure. */
+ osmo_chan_init();
+
/* create channel. */
chan = osmo_chan_create(tall_example, CHAN_ABIS_IPA_SRV);
if (chan == NULL) {