diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-23 14:01:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-23 14:05:49 +0100 |
commit | 2d99eeb7f2c7978e9d96f5df61e462e6feb05973 (patch) | |
tree | ffe29fa00874ddb3aade11d773c49b8ea35f32e3 /openbsc/include/openbsc/db.h | |
parent | 9dbc3f8db7ca2c95ad6b986cdc4cd6c7a602a8b4 (diff) |
nitb/ctrl: Implement creating and deleting subscribers
Sadly there is no proper foreign key relationship on the tables
that related to the Subscriber. This means we can't use a DELETE
with Cascade and need to delete everything by hand. To make things
worse maybe the SMS/Paging code is still using the subscriber
making the operation more dangerous. I had added NULL checks for
sender_id/receiver_id at 30C3 so we should not crash in this
situation.
Fixes: SYS#274
Diffstat (limited to 'openbsc/include/openbsc/db.h')
-rw-r--r-- | openbsc/include/openbsc/db.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h index 29c6b42b8..f1c2def92 100644 --- a/openbsc/include/openbsc/db.h +++ b/openbsc/include/openbsc/db.h @@ -44,6 +44,7 @@ int db_subscriber_alloc_tmsi(struct gsm_subscriber *subscriber); int db_subscriber_alloc_exten(struct gsm_subscriber *subscriber); int db_subscriber_alloc_token(struct gsm_subscriber *subscriber, uint32_t* token); int db_subscriber_assoc_imei(struct gsm_subscriber *subscriber, char *imei); +int db_subscriber_delete(struct gsm_subscriber *subscriber); int db_sync_equipment(struct gsm_equipment *equip); int db_subscriber_update(struct gsm_subscriber *subscriber); |