aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-12-15 21:36:05 +0100
committerHarald Welte <laforge@gnumonks.org>2009-12-15 21:36:05 +0100
commitd12b0fdf51b76f906d5ee5f5b7f266fe791eb800 (patch)
treea490b56bb3f4482a86ccd5c009d5a5d54054106f /openbsc/include/openbsc/gsm_data.h
parent0b12103965c824b0dae1ae10df00d87d4ef1ec7b (diff)
introduce cache of 6 last recently received measurement reports for each lchan
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r--openbsc/include/openbsc/gsm_data.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 012481a5f..b21f8aa05 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -194,6 +194,10 @@ struct gsm_lchan {
/* use count. how many users use this channel */
unsigned int use_count;
+ /* cache of last measurement reports on this lchan */
+ struct gsm_meas_rep meas_rep[6];
+ int meas_rep_idx;
+
struct {
u_int32_t bound_ip;
u_int16_t bound_port;
@@ -564,4 +568,6 @@ const char *rrlp_mode_name(enum rrlp_mode mode);
void gsm_trx_lock_rf(struct gsm_bts_trx *trx, int locked);
+struct gsm_meas_rep *lchan_next_meas_rep(struct gsm_lchan *lchan);
+
#endif