From 2b5d3ce7c69e1149bb2af815ab8b8534026063ca Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 6 Nov 2011 20:47:08 +0100 Subject: src: add generic channel infrastructure and A-bis IPA server support This patch adds the generic channel infrastructure that allows to create channel of different types. Each channel has their own configuration functions. struct osmo_chan *chan; chan = osmo_chan_create(tall_example, CHAN_ABIS_IPA_SERVER); ... /* specific configuration functions per supported channel. */ osmo_chan_abis_ipa_server_set_cb_signalmsg(chan, signal_msg_cb); osmo_chan_abis_ipa_unit_add(chan, 1801, 0); /* open channel. */ osmo_chan_open(chan); The input path requires a callback to be registered. The output path is handled through: int osmo_chan_enqueue(struct osmo_chan *c, struct msgb *msg); The msg->dst must be set (it can be taken from the original message to route one reply). This patch also adds A-bis IPA server support. It has been tested with e1inp_ipa_bsc_test available in libosmo-abis. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5e6e497..692688a 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,9 @@ AC_OUTPUT( include/Makefile include/osmocom/Makefile include/osmocom/netif/Makefile + include/osmocom/netif/channel/Makefile src/Makefile + src/channel/Makefile examples/Makefile + examples/channel/Makefile Makefile) -- cgit v1.2.3