Move extern declarations of tall_sgsn_ctx to sgsn.h

Change-Id: Ifbd54b2e92db8d4a0e0cd1c569cfd83dd85165b8
changes/30/30930/1
Pau Espin 2023-01-11 12:42:31 +01:00
parent 69569879ae
commit 164a1eeb8a
9 changed files with 1 additions and 14 deletions

View File

@ -159,6 +159,7 @@ struct sgsn_instance {
};
extern struct sgsn_instance *sgsn;
extern void *tall_sgsn_ctx;
/* sgsn_vty.c */

View File

@ -24,8 +24,6 @@
#include <netdb.h>
extern void *tall_sgsn_ctx;
struct cares_event_fd {
struct llist_head head;
struct osmo_fd fd;

View File

@ -27,8 +27,6 @@
#include <osmocom/sgsn/apn.h>
#include <osmocom/sgsn/sgsn.h>
extern void *tall_sgsn_ctx;
static struct apn_ctx *sgsn_apn_ctx_alloc(const char *ap_name, const char *imsi_prefix)
{
struct apn_ctx *actx;

View File

@ -68,7 +68,6 @@
#define PTMSI_ALLOC
extern struct sgsn_instance *sgsn;
extern void *tall_sgsn_ctx;
static const struct tlv_definition gsm48_gmm_att_tlvdef = {
.def = {

View File

@ -62,7 +62,6 @@
#define GPRS_LLME_CHECK_TICK 30
extern struct sgsn_instance *sgsn;
extern void *tall_sgsn_ctx;
extern struct osmo_tdef sgsn_T_defs[];
LLIST_HEAD(sgsn_mm_ctxts);

View File

@ -44,8 +44,6 @@
#include <osmocom/sgsn/gprs_ranap.h>
#include <osmocom/sgsn/gtp.h>
extern void *tall_sgsn_ctx;
/* 3GPP TS 04.08 sec 6.1.3.4.3(.a) "Abnormal cases" */
#define T339X_MAX_RETRANS 4

View File

@ -48,8 +48,6 @@
(gsup)->imsi, \
## args)
extern void *tall_sgsn_ctx;
LLIST_HEAD(_gprs_subscribers);
struct llist_head * const gprs_subscribers = &_gprs_subscribers;

View File

@ -26,8 +26,6 @@
#include <osmocom/sgsn/gtp_mme.h>
#include <osmocom/sgsn/sgsn.h>
extern void *tall_sgsn_ctx;
static bool _eutran_tai_equal(const struct osmo_eutran_tai *t1, const struct osmo_eutran_tai *t2)
{
return t1->mcc == t2->mcc &&

View File

@ -63,8 +63,6 @@
#include <osmocom/ranap/iu_client.h>
#endif
extern void *tall_sgsn_ctx;
static struct sgsn_config *g_cfg = NULL;
const struct value_string sgsn_auth_pol_strs[] = {