pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-sgsn/+/30868 )


Change subject: Introduce new header file sgsn/gtp.h
......................................................................

Introduce new header file sgsn/gtp.h

It will be used to store all stuff relatd to libgtp use and GTP
protocol, similar to what we already do for other protocols.

Change-Id: I4aae35cd0ea401856cd822cb507d668350d07a89
---
M include/osmocom/sgsn/Makefile.am
M include/osmocom/sgsn/gprs_sgsn.h
A include/osmocom/sgsn/gtp.h
M src/sgsn/sgsn_main.c
4 files changed, 7 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/68/30868/1

diff --git a/include/osmocom/sgsn/Makefile.am b/include/osmocom/sgsn/Makefile.am
index dbbc0c6..fc4f597 100644
--- a/include/osmocom/sgsn/Makefile.am
+++ b/include/osmocom/sgsn/Makefile.am
@@ -21,6 +21,7 @@
        gprs_sndcp_xid.h \
        gprs_subscriber.h \
        gprs_utils.h \
+       gtp.h \
        gtphub.h \
        gtp_ggsn.h \
        gtp_mme.h \
diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h
index a979e68..034aebc 100644
--- a/include/osmocom/sgsn/gprs_sgsn.h
+++ b/include/osmocom/sgsn/gprs_sgsn.h
@@ -460,9 +460,6 @@
 /* Called on subscriber data updates */
 void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx);

-struct sgsn_instance;
-int sgsn_gtp_init(struct sgsn_instance *sgi);
-
 void sgsn_rate_ctr_init();

 #endif /* _GPRS_SGSN_H */
diff --git a/include/osmocom/sgsn/gtp.h b/include/osmocom/sgsn/gtp.h
new file mode 100644
index 0000000..85a50d3
--- /dev/null
+++ b/include/osmocom/sgsn/gtp.h
@@ -0,0 +1,5 @@
+#pragma once
+
+struct sgsn_instance;
+
+int sgsn_gtp_init(struct sgsn_instance *sgi);
diff --git a/src/sgsn/sgsn_main.c b/src/sgsn/sgsn_main.c
index 362e7aa..3ad0881 100644
--- a/src/sgsn/sgsn_main.c
+++ b/src/sgsn/sgsn_main.c
@@ -65,6 +65,7 @@
 #include <osmocom/sgsn/gprs_ns.h>
 #include <osmocom/sgsn/gprs_bssgp.h>
 #include <osmocom/sgsn/gprs_subscriber.h>
+#include <osmocom/sgsn/gtp.h>

 #include <osmocom/ctrl/control_if.h>
 #include <osmocom/ctrl/ports.h>

--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/30868
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I4aae35cd0ea401856cd822cb507d668350d07a89
Gerrit-Change-Number: 30868
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to