From 3b90125346e250f4d800e62846d39660a482d3c7 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Jan 2019 14:15:11 +0100 Subject: 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 --- include/osmocom/gsm/gsm0808_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/osmocom/gsm/gsm0808_utils.h') 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 */ }; -- cgit v1.2.3