aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2013-01-03 16:44:28 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-13 17:24:45 +0100
commit91816acfb8449379fa8003af4524c65ec36d37a7 (patch)
tree5bb442134fc5a50c7c57e9aaad79a90631eb3c9a /include
parentfad5b0862514ab4ef6d13fe0d5e4b39a2983e13c (diff)
paging: De-duplicate paging lifetime and max queue length variables
These attributes are saved in paging_state, we don't need to save them a second time in struct gsm_bts_role_bts. Add get and set methods for these attributes and use them consitently in the VTY code.
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/gsm_data.h2
-rw-r--r--include/osmo-bts/paging.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 55eec964..1bc6c9f2 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -50,8 +50,6 @@ struct gsm_bts_role_bts {
uint8_t max_ta;
struct llist_head agch_queue;
struct paging_state *paging_state;
- unsigned int paging_q_len;
- unsigned int paging_lifetime;
char *bsc_oml_host;
char *rtp_bind_host;
unsigned int rtp_jitter_buf_ms;
diff --git a/include/osmo-bts/paging.h b/include/osmo-bts/paging.h
index 093f74d0..d31f5c12 100644
--- a/include/osmo-bts/paging.h
+++ b/include/osmo-bts/paging.h
@@ -20,6 +20,14 @@ void paging_config(struct paging_state *ps,
void paging_reset(struct paging_state *ps);
+/* The max number of paging entries */
+unsigned int paging_get_queue_max(struct paging_state *ps);
+void paging_set_queue_max(struct paging_state *ps, unsigned int queue_max);
+
+/* The lifetime of a paging entry */
+unsigned int paging_get_lifetime(struct paging_state *ps);
+void paging_set_lifetime(struct paging_state *ps, unsigned int lifetime);
+
/* update with new SYSTEM INFORMATION parameters */
int paging_si_update(struct paging_state *ps, struct gsm48_control_channel_descr *chan_desc);