diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2013-01-03 16:44:28 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-13 17:24:45 +0100 |
commit | 91816acfb8449379fa8003af4524c65ec36d37a7 (patch) | |
tree | 5bb442134fc5a50c7c57e9aaad79a90631eb3c9a /include/osmo-bts/paging.h | |
parent | fad5b0862514ab4ef6d13fe0d5e4b39a2983e13c (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/osmo-bts/paging.h')
-rw-r--r-- | include/osmo-bts/paging.h | 8 |
1 files changed, 8 insertions, 0 deletions
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); |