diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-05 15:05:03 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-06 19:53:44 +0100 |
commit | 5c6bd5104ebe828def8d12779fb372dcc6d57e96 (patch) | |
tree | 7635d7a1c2a297a62e79319b958cfb6dfed3bc1f /include | |
parent | 8fa5d558fbe5f9a3c073a2a526acf391a5bb347d (diff) |
make ranap_common.cn.[ch] part of libosmo-ranap
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/ranap/Makefile.am | 1 | ||||
-rw-r--r-- | include/osmocom/ranap/ranap_common_cn.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/osmocom/ranap/Makefile.am b/include/osmocom/ranap/Makefile.am index b4e1e29..13f1e1c 100644 --- a/include/osmocom/ranap/Makefile.am +++ b/include/osmocom/ranap/Makefile.am @@ -9,6 +9,7 @@ ranap_ies_defs.h: $(top_builddir)/src/ranap_encoder.c ranap_HEADERS = \ ranap_ies_defs.h \ ranap_common.h \ + ranap_common_cn.h \ ranap_msg_factory.h \ iu_helpers.h \ RANAP_AccuracyFulfilmentIndicator.h \ diff --git a/include/osmocom/ranap/ranap_common_cn.h b/include/osmocom/ranap/ranap_common_cn.h new file mode 100644 index 0000000..f0fd09e --- /dev/null +++ b/include/osmocom/ranap/ranap_common_cn.h @@ -0,0 +1,14 @@ +#pragma once + +#include <stdint.h> + +#include <osmocom/ranap/ranap_common.h> +#include <osmocom/ranap/ranap_ies_defs.h> + +typedef void (*ranap_handle_cb)(void *ctx, ranap_message *ranap_msg); + +/* receive a connections-liess RANAP message */ +int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); + +/* receive a connection-oriented RANAP message */ +int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); |