aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-01-15 14:15:11 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-19 21:06:03 +0000
commit3b90125346e250f4d800e62846d39660a482d3c7 (patch)
treeb56f9000be4b5213ebecda3e0fb33cf7c2e74d09 /include/osmocom
parent414c8f565b68199fe1d7dd5d179252127a58ecaf (diff)
LCLS: make GCR into static member of osmo_lcls
Most of the time we'll have GCR filled anyway so it make sense to have it as static parameter instead of a pointer to separately allocated structure. Update tests to cover both static and dynamic osmo_lcls allocation variants. Change-Id: I905c36d8455911c68c30bc429379b7313dd46aea
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/gsm/gsm0808_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h
index 4a2233e7..7c6f7070 100644
--- a/include/osmocom/gsm/gsm0808_utils.h
+++ b/include/osmocom/gsm/gsm0808_utils.h
@@ -63,7 +63,8 @@ struct gsm0808_cell_id_list2 {
struct osmo_lcls {
enum gsm0808_lcls_config config; /**< §3.2.2.116 Configuration */
enum gsm0808_lcls_control control; /**< §3.2.2.117 Connection Status Control */
- struct osmo_gcr_parsed *gcr; /**< §3.2.2.115 Global Call Reference */
+ struct osmo_gcr_parsed gcr; /**< §3.2.2.115 Global Call Reference */
+ bool gcr_available;
bool corr_needed; /**< §3.2.2.118 Correlation-Not-Needed */
};