diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-11 15:21:48 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-11 16:21:38 +0100 |
commit | f4b66fb2f13b22797d547cc4ce3650a25f3ee3e4 (patch) | |
tree | d2cff00922198badb80246ae938af3b7dcd50efe /include/osmocom/bsc/paging.h | |
parent | 958cccf89a3bcad75062425005b9f7bd08215ce1 (diff) |
paging: Remove obsolete paging call-back support
The call-back was needed inside the NITB to determine which part (CC,
SMS, ...) had triggered a given paging. A pure BSC doesn't need that
feature, so let's get rid of it.
The 'void *cbfn_data' is replaced with a 'struct bsc_msc_data *', as
all callers use it with that type.
Change-Id: I8839e8338d3ad1a91b41e687e8412fcdca3fd9ab
Diffstat (limited to 'include/osmocom/bsc/paging.h')
-rw-r--r-- | include/osmocom/bsc/paging.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h index e917772a7..533f3667a 100644 --- a/include/osmocom/bsc/paging.h +++ b/include/osmocom/bsc/paging.h @@ -29,6 +29,8 @@ #include <osmocom/bsc/gsm_data.h> #include <osmocom/bsc/bsc_subscriber.h> +struct bsc_msc_data; + /** * A pending paging request */ @@ -49,16 +51,15 @@ struct gsm_paging_request { /* How often did we ask the BTS to page? */ int attempts; - /* callback to be called in case paging completes */ - gsm_cbfn *cbfn; - void *cbfn_param; + /* MSC that has issued this paging */ + struct bsc_msc_data *msc; }; /* schedule paging request */ -int paging_request(struct gsm_network *network, struct bsc_subscr *bsub, - int type, gsm_cbfn *cbfn, void *data); -int paging_request_bts(struct gsm_bts *bts, struct bsc_subscr *bsub, - int type, gsm_cbfn *cbfn, void *data); +int paging_request(struct gsm_network *network, struct bsc_subscr *bsub, int type, + struct bsc_msc_data *msc); +int paging_request_bts(struct gsm_bts *bts, struct bsc_subscr *bsub, int type, + struct bsc_msc_data *msc); /* stop paging requests */ void paging_request_stop(struct llist_head *bts_list, @@ -72,6 +73,6 @@ void paging_update_buffer_space(struct gsm_bts *bts, uint16_t); /* pending paging requests */ unsigned int paging_pending_requests_nr(struct gsm_bts *bts); -void *paging_get_data(struct gsm_bts *bts, struct bsc_subscr *bsub); +struct bsc_msc_data *paging_get_msc(struct gsm_bts *bts, struct bsc_subscr *bsub); #endif |