Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 1 | /* Paging helper and manager.... */ |
| 2 | /* (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 3 | * All Rights Reserved |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef PAGING_H |
| 22 | #define PAGING_H |
| 23 | |
| 24 | #include <stdlib.h> |
| 25 | #include <string.h> |
| 26 | |
| 27 | #include "linuxlist.h" |
| 28 | #include "gsm_data.h" |
| 29 | #include "gsm_subscriber.h" |
| 30 | #include "timer.h" |
| 31 | |
| 32 | /* call once for every gsm_bts... */ |
| 33 | void paging_init(struct gsm_bts *bts); |
| 34 | |
| 35 | /* schedule paging request */ |
Holger Freyther | 93795ac | 2009-03-31 04:35:19 +0200 | [diff] [blame] | 36 | void paging_request(struct gsm_network *network, struct gsm_subscriber *subscr, |
Harald Welte | 59b0468 | 2009-06-10 05:40:52 +0800 | [diff] [blame] | 37 | int type, gsm_cbfn *cbfn, void *data); |
| 38 | |
| 39 | /* stop paging requests */ |
| 40 | void paging_request_stop(struct gsm_bts *bts, struct gsm_subscriber *subscr, |
| 41 | struct gsm_lchan *lchan); |
| 42 | |
| 43 | /* update paging load */ |
| 44 | void paging_update_buffer_space(struct gsm_bts *bts, u_int16_t); |
| 45 | |
| 46 | #endif |