From 91816acfb8449379fa8003af4524c65ec36d37a7 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 3 Jan 2013 16:44:28 +0100 Subject: 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. --- include/osmo-bts/gsm_data.h | 2 -- include/osmo-bts/paging.h | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3