aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/ranap_common_cn.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-25 15:33:41 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-25 15:33:41 +0100
commit3cfa450fdcc3cb9a47c05c3bc543cb493dd43b20 (patch)
tree9dbce9bd594296323d4cc0dba022a6ba2fdca55b /src/tests/ranap_common_cn.h
parent706213ac4bc9bee19ecd5d65c500a8996ea3ed45 (diff)
Add new common RANAP parsing code for CN elements
Diffstat (limited to 'src/tests/ranap_common_cn.h')
-rw-r--r--src/tests/ranap_common_cn.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/ranap_common_cn.h b/src/tests/ranap_common_cn.h
new file mode 100644
index 0000000..38d2384
--- /dev/null
+++ b/src/tests/ranap_common_cn.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <stdint.h>
+
+#include "ranap_common.h"
+#include "ranap_ies_defs.h"
+
+/* call-back functions to be provided by actual core network node */
+int cn_ranap_handle_co(void *ctx, ranap_message *message);
+int cn_ranap_handle_cl(void *ctx, ranap_message *message);
+
+
+/* receive a connections-liess RANAP message */
+int cn_ranap_rx_cl(void *ctx, uint8_t *data, size_t len);
+
+/* receive a connection-oriented RANAP message */
+int cn_ranap_rx_co(void *ctx, uint8_t *data, size_t len);