From a1e0373224e02784f85eb47306a689fce45fb9e3 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 2 Dec 2014 11:28:38 +0100 Subject: sgsn: Put SGSN related subscriber data into separate struct There will be an increasing number of SGSN related fields per subscriber. Instead of extending gsm_subscriber accordingly, a single struct sgsn_subscriber_data object is assigned to it. The talloc context used to allocated that object is the subscr object itself. Therefore it will be freed automatically along with the subscr object. Sponsored-by: On-Waves ehf --- openbsc/include/openbsc/gsm_subscriber.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/gsm_subscriber.h') diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index 195fa0fd0..290cc44dc 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -20,6 +20,7 @@ struct vty; struct sgsn_mm_ctx; +struct sgsn_subscriber_data; struct gsm_subscriber_group { struct gsm_network *net; @@ -69,7 +70,7 @@ struct gsm_subscriber { struct llist_head requests; /* GPRS/SGSN related fields */ - struct sgsn_mm_ctx *mm; + struct sgsn_subscriber_data *sgsn_data; }; enum gsm_subscriber_field { -- cgit v1.2.3