aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/paging.h
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-02-06 18:54:00 +0000
committerHolger Freyther <zecke@selfish.org>2009-02-06 18:54:00 +0000
commitceb59b72c23f9af90538704d4ce29aaee80c11e4 (patch)
treeca4a5164583fdc0a253b4258a009e417c09de1cb /include/openbsc/paging.h
parent3d949240fe9a81643bef5a854e52f58e7b33bf04 (diff)
[paging] Move the paging state into struct gsm_bts
There is a 1:1 relationship between gsm_bts and the paging operation. Move the paging state into the gsm_bts which is simplfying the code a lot. This was hinted by LaF0rge. (I'm not happy with the names of the structs)
Diffstat (limited to 'include/openbsc/paging.h')
-rw-r--r--include/openbsc/paging.h33
1 files changed, 1 insertions, 32 deletions
diff --git a/include/openbsc/paging.h b/include/openbsc/paging.h
index 884d16396..44361f7c7 100644
--- a/include/openbsc/paging.h
+++ b/include/openbsc/paging.h
@@ -29,39 +29,8 @@
#include "gsm_subscriber.h"
#include "timer.h"
-/**
- * A pending paging request
- */
-struct paging_request {
- struct llist_head entry;
- struct gsm_subscriber *subscr;
- struct gsm_bts *bts;
- int requests;
-
- int chan_type;
-};
-
-/*
- * struct for each bts we serve...
- */
-struct paging_bts {
- /* public callbacks */
- void (*channel_allocated)(struct gsm_lchan *lchan);
-
- /* list for each bts */
- struct llist_head bts_list;
-
- /* pending requests */
- struct llist_head pending_requests;
- struct paging_request *last_request;
- struct gsm_bts *bts;
-
- /* tick timer */
- struct timer_list page_timer;
-};
-
/* call once for every gsm_bts... */
-struct paging_bts* page_allocate(struct gsm_bts *bts);
+void page_init(struct gsm_bts *bts);
/* schedule paging request */
void page_request(struct gsm_bts *bts, struct gsm_subscriber *subscr, int type);