libgtp: Add back-reference to gsn from pdp context
This is required once one wants to support multiple GSNs in a single
application.
WARNING: This breaks ABI compatibility, LIBVERSION must be adjusted
Change-Id: I68ae49a765828fa681054c68bf7f5e74dbe48ad2
diff --git a/gtp/pdp.h b/gtp/pdp.h
index 432f1df..c51e9e2 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -12,6 +12,8 @@
#ifndef _PDP_H
#define _PDP_H
+struct gsn_t;
+
#define PDP_MAX 1024 /* Max number of PDP contexts */
#define PDP_MAXNSAPI 16 /* Max number of NSAPI */
@@ -221,6 +223,8 @@
/* to be used by libgtp callers/users (to attach their own private state) */
void *priv;
+
+ struct gsn_t *gsn;
};
/* functions related to pdp_t management */