aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-01-28 13:03:45 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-03 16:19:09 +0100
commita2ce4aa61559c83b65f24428a4b1996354d8d344 (patch)
treeb31e7d859cc75965bf4fdee43d73860c0aa04c94
parentee1541d504299227f534a7f15b0c75c18a3f4271 (diff)
cscn: move gsm0408_rcvmsg_iucs() decl to proper place.
Add noinst-header iu_cs.h and move the gsm0408_rcvmsg_iucs() declaration there.
-rw-r--r--openbsc/include/openbsc/iu.h3
-rw-r--r--openbsc/src/osmo-cscn/Makefile.am2
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c2
-rw-r--r--openbsc/src/osmo-cscn/iu_cs.h5
4 files changed, 9 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/iu.h b/openbsc/include/openbsc/iu.h
index d8805c977..2a759ebe4 100644
--- a/openbsc/include/openbsc/iu.h
+++ b/openbsc/include/openbsc/iu.h
@@ -21,6 +21,3 @@ int iu_tx(struct msgb *msg, uint8_t sapi);
int iu_rab_act_cs(struct ue_conn_ctx *ue_ctx, uint32_t rtp_ip, uint16_t rtp_port);
int iu_rab_act_ps(struct ue_conn_ctx *ue_ctx, uint32_t gtp_ip, uint32_t gtp_tei);
-
-/* TODO wrong file */
-int gsm0408_rcvmsg_iucs(struct gsm_network *network, struct msgb *msg, uint8_t link_id);
diff --git a/openbsc/src/osmo-cscn/Makefile.am b/openbsc/src/osmo-cscn/Makefile.am
index f7ed7b0ed..2c4cff7c3 100644
--- a/openbsc/src/osmo-cscn/Makefile.am
+++ b/openbsc/src/osmo-cscn/Makefile.am
@@ -6,6 +6,8 @@ AM_CFLAGS=-Wall $(COVERAGE_CFLAGS) \
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
+noinst_HEADERS = iu_cs.h
+
bin_PROGRAMS = osmo-cscn
osmo_cscn_SOURCES = cscn_main.c \
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index 61470d819..a67632fcc 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_main.c
@@ -63,6 +63,8 @@
#include "../../bscconfig.h"
+#include "iu_cs.h"
+
/* MCC and MNC for the Location Area Identifier */
struct gsm_network *bsc_gsmnet = 0;
static const char *database_name = "hlr.sqlite3";
diff --git a/openbsc/src/osmo-cscn/iu_cs.h b/openbsc/src/osmo-cscn/iu_cs.h
new file mode 100644
index 000000000..01d3d2f2a
--- /dev/null
+++ b/openbsc/src/osmo-cscn/iu_cs.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#include <openbsc/iu.h>
+
+int gsm0408_rcvmsg_iucs(struct gsm_network *network, struct msgb *msg, uint8_t link_id);