diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-24 21:43:14 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-24 21:43:14 +0100 |
commit | ee139e725386b1df7e482ea76b143fc931a48470 (patch) | |
tree | b0357b2a8b90918d9f73de1314aae9eb72c33111 /openbsc/include/openbsc | |
parent | a29e43a26fae23d5132461cf7bfa43a1ca64761f (diff) | |
parent | abd0cac0c52d52d40ac0d51710010fee28200f3d (diff) |
Merge branch 'zecke/subscr'
Diffstat (limited to 'openbsc/include/openbsc')
-rw-r--r-- | openbsc/include/openbsc/db.h | 1 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_subscriber.h | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h index 8bf361fc8..ba7c5a74b 100644 --- a/openbsc/include/openbsc/db.h +++ b/openbsc/include/openbsc/db.h @@ -49,6 +49,7 @@ int db_subscriber_alloc_exten(struct gsm_subscriber *subscriber); int db_subscriber_alloc_token(struct gsm_subscriber *subscriber, u_int32_t* token); int db_subscriber_assoc_imei(struct gsm_subscriber *subscriber, char *imei); int db_sync_equipment(struct gsm_equipment *equip); +int db_subscriber_update(struct gsm_subscriber *subscriber); /* auth info */ int db_get_authinfo_for_subscr(struct gsm_auth_info *ainfo, diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index b9ec94cf9..f42ae1b4a 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -730,6 +730,9 @@ struct gsm_network { /* MSC data in case we are a true BSC */ struct osmo_msc_data *msc_data; int hardcoded_rtp_payload; + + /* subscriber related features */ + int keep_subscr; }; #define SMS_HDR_SIZE 128 diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index c688c0195..29317e822 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -90,6 +90,9 @@ struct gsm_subscriber *subscr_active_by_imsi(struct gsm_network *net, char *subscr_name(struct gsm_subscriber *subscr); +int subscr_purge_inactive(struct gsm_network *net); +void subscr_update_from_db(struct gsm_subscriber *subscr); + /* internal */ struct gsm_subscriber *subscr_alloc(void); extern struct llist_head active_subscribers; |