diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-08-15 03:16:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-08-15 03:16:17 +0200 |
commit | e903edf5801eb63f65138408c7b5d7c2fa22a231 (patch) | |
tree | 3d7d0da06a8f2af96f85c4f8126bf02de6ade132 /openbsc/include/openbsc/paging.h | |
parent | 15920de8ce9b9199f4ef4ad568b204af0f34b2f0 (diff) |
provide return code from paging_request() function
this enables the caller to detect if the paging request was rejected
by the paging layer, especially in case it is already paging this very
subscriber.
In the case of SMS / 04.11, we used to have a memory leak of struct gsm_sms's,
since we would only free them from the paging succeeded/expired callbacks.
Diffstat (limited to 'openbsc/include/openbsc/paging.h')
-rw-r--r-- | openbsc/include/openbsc/paging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/paging.h b/openbsc/include/openbsc/paging.h index 2f17e243e..ab6a27494 100644 --- a/openbsc/include/openbsc/paging.h +++ b/openbsc/include/openbsc/paging.h @@ -33,8 +33,8 @@ void paging_init(struct gsm_bts *bts); /* schedule paging request */ -void paging_request(struct gsm_network *network, struct gsm_subscriber *subscr, - int type, gsm_cbfn *cbfn, void *data); +int paging_request(struct gsm_network *network, struct gsm_subscriber *subscr, + int type, gsm_cbfn *cbfn, void *data); /* stop paging requests */ void paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *subscr, |