diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-11-13 10:48:39 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-11-14 10:26:06 +0100 |
commit | a0b6efb3685ea90190cfbd9423a74c181ea4f12f (patch) | |
tree | 17d62d87e6fbf5229093a791b58f0e4042ff6ca9 /openbsc/include/openbsc/gprs_sgsn.h | |
parent | f951a01bb227e524eb369051c95fbebace7570d0 (diff) |
sgsn: Remove explicit sgsn_instance parameters
Currently the function in sgsn_auth.c either have an sgsn_config or
an sgsn_instance parameter. Since then global sgsn variable is
already being used in that file and since other parts of the SGSN
related code also rely on a global sgsn singleton, these parameters
pretend to provide a flexibility that is not really supported.
Therefore this patch removes these parameters except for the ACL
related functions, which do not call code that uses the sgsn
variable.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index ac78a1626..7ee68cc79 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -271,15 +271,14 @@ struct sgsn_config; struct sgsn_instance; extern const struct value_string *sgsn_auth_state_names; -void sgsn_auth_init(struct sgsn_instance *sgi); +void sgsn_auth_init(void); struct imsi_acl_entry *sgsn_acl_lookup(const char *imsi, struct sgsn_config *cfg); int sgsn_acl_add(const char *imsi, struct sgsn_config *cfg); int sgsn_acl_del(const char *imsi, struct sgsn_config *cfg); /* Request authorization */ -int sgsn_auth_request(struct sgsn_mm_ctx *mm, struct sgsn_config *cfg); -enum sgsn_auth_state sgsn_auth_state(struct sgsn_mm_ctx *mm, - struct sgsn_config *cfg); -void sgsn_auth_update(struct sgsn_mm_ctx *mm, struct sgsn_instance *sgi); +int sgsn_auth_request(struct sgsn_mm_ctx *mm); +enum sgsn_auth_state sgsn_auth_state(struct sgsn_mm_ctx *mm); +void sgsn_auth_update(struct sgsn_mm_ctx *mm); /* Called on subscriber data updates */ void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx); |