aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-12 14:52:45 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-12 18:23:25 +0200
commitdefa657404df72fe10152abbeb1cf4db8d3ed79d (patch)
tree50b34ec881fec26066de4a42598ae9c0bffe2030
parentdb3a9f4d69f97970981cc3dc80200af82fb96b02 (diff)
libgtp: Remove ctrl_handle from gsn_t, replace with private context
The control interface handle never belonged into libgtp in the first place. Commit 727417dd28813c697b4820aef9f54f249e30c4b8 should not have added this to the shared library (used by sgsnemu, osmo-sgsn, ...), but to some private state of the GGSN. Introducing a private context pointer at the same location will keep ABI compatibilty. Change-Id: I4f17516dae3e04114564828a3e5f6e2ea54212a5
-rw-r--r--gtp/gtp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtp/gtp.h b/gtp/gtp.h
index fd138cc..825a142 100644
--- a/gtp/gtp.h
+++ b/gtp/gtp.h
@@ -12,8 +12,6 @@
#ifndef _GTP_H
#define _GTP_H
-#include <osmocom/ctrl/control_if.h>
-
#define GTP_MODE_GGSN 1
#define GTP_MODE_SGSN 2
@@ -247,7 +245,7 @@ struct gsn_t {
unsigned char restart_counter; /* Increment on restart. Stored on disk */
char *statedir; /* Disk location for permanent storage */
- struct ctrl_handle *ctrl; /* Control Interface */
+ void *priv; /* used by libgtp users to attach their own state) */
struct queue_t *queue_req; /* Request queue */
struct queue_t *queue_resp; /* Response queue */