aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-22 22:11:27 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-23 14:11:54 +0100
commita2db75f28cfbf096b076058ff89d1ef2cac3e6b1 (patch)
tree40585b240fa13a6294bdb3deb2caa52a2fc1988b /src
parent8db1134c72d629d16368eb493a231d9ec742cf17 (diff)
Add osmo_prim_op_names[] symbol and _SAP_SS7_BASE define
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/prim.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 32cefc8b..c46cddf9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,7 +15,7 @@ libosmocore_la_SOURCES = timer.c select.c signal.c msgb.c bits.c \
gsmtap_util.c crc16.c panic.c backtrace.c \
conv.c application.c rbtree.c strrb.c \
loggingrb.c crc8gen.c crc16gen.c crc32gen.c crc64gen.c \
- macaddr.c stat_item.c stats.c stats_statsd.c
+ macaddr.c stat_item.c stats.c stats_statsd.c prim.c
BUILT_SOURCES = crc8gen.c crc16gen.c crc32gen.c crc64gen.c
diff --git a/src/prim.c b/src/prim.c
new file mode 100644
index 00000000..c2e71986
--- /dev/null
+++ b/src/prim.c
@@ -0,0 +1,10 @@
+#include <osmocom/core/utils.h>
+#include <osmocom/core/prim.h>
+
+const struct value_string osmo_prim_op_names[5] = {
+ { PRIM_OP_REQUEST, "request" },
+ { PRIM_OP_RESPONSE, "response" },
+ { PRIM_OP_INDICATION, "indication" },
+ { PRIM_OP_CONFIRM, "confirm" },
+ { 0, NULL }
+};