diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 09:15:01 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-15 20:06:45 +0100 |
commit | d740b688dc33116efd12763170e1c5e6a4fdc9d4 (patch) | |
tree | 6399f1629a66c9353f97baecb6fc9aacfc79a49c /openbsc/include/openbsc/gsm_subscriber.h | |
parent | 928ca743db057902337ca282e6a12d8a5389df4f (diff) |
subscr: Add the subscr_get_or_create from the on-waves/bsc-master branch
Create a subscriber based on a known IMSI, search the list of
active subscribers if there is already someone like this.
Diffstat (limited to 'openbsc/include/openbsc/gsm_subscriber.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_subscriber.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_subscriber.h b/openbsc/include/openbsc/gsm_subscriber.h index 781629c0c..2cf8d8c53 100644 --- a/openbsc/include/openbsc/gsm_subscriber.h +++ b/openbsc/include/openbsc/gsm_subscriber.h @@ -77,6 +77,8 @@ struct gsm_subscriber *subscr_get_by_extension(struct gsm_network *net, const char *ext); struct gsm_subscriber *subscr_get_by_id(struct gsm_network *net, unsigned long long id); +struct gsm_subscriber *subscr_get_or_create(struct gsm_network *net, + const char *imsi); int subscr_update(struct gsm_subscriber *s, struct gsm_bts *bts, int reason); void subscr_put_channel(struct gsm_subscriber_connection *conn); void subscr_get_channel(struct gsm_subscriber *subscr, |