aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/paging.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-01-06 23:10:57 +0000
committerHarald Welte <laforge@gnumonks.org>2009-01-06 23:10:57 +0000
commit38c2f13098abb18ad58785bf473692ef4e0211fa (patch)
tree36cf196b9d2093c6aee458a619267692c18394e1 /include/openbsc/paging.h
parentb68899d3e3f581cfa0b8d943cc90fddfe1596412 (diff)
Hook the paging code into bsc_hack.c and telnet_interface.c
Wrote and test code to add and remove paging requests... This will be using the fact that the linux list is building a circle on each tick we can send one/x paging requests and continue round robin...
Diffstat (limited to 'include/openbsc/paging.h')
-rw-r--r--include/openbsc/paging.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/openbsc/paging.h b/include/openbsc/paging.h
index 93137fccd..72b0f11eb 100644
--- a/include/openbsc/paging.h
+++ b/include/openbsc/paging.h
@@ -27,6 +27,7 @@
#include "linuxlist.h"
#include "gsm_data.h"
#include "gsm_subscriber.h"
+#include "timer.h"
/**
* A pending paging request
@@ -35,6 +36,8 @@ struct paging_request {
struct llist_head entry;
struct gsm_subscriber *subscr;
struct gsm_bts *bts;
+
+ int chan_type;
};
/*
@@ -49,13 +52,17 @@ struct paging_bts {
/* 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);
/* schedule paging request */
-void page_request(struct gsm_bts *bts, struct gsm_subscriber *subscr);
+void page_request(struct gsm_bts *bts, struct gsm_subscriber *subscr, int type);
#endif