From 5ec0cf5475a7b31efa3b122f53e6c2a0e1908c20 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Jan 2019 16:37:09 +0100 Subject: LCLS: add string dump helpers Add functions to dump LCLS (without GCR) and GCR. Dumping entire struct results in inconveniently long string hence the separate functions. Both use talloc functions so they expect caller to take care of providing proper allocation context and freeing memory. Change-Id: Ic3609224c8f3282d667e75f68bc20327e36eb9e6 --- include/osmocom/gsm/gsm0808_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/osmocom/gsm') diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h index e1e345d6..2b48be76 100644 --- a/include/osmocom/gsm/gsm0808_utils.h +++ b/include/osmocom/gsm/gsm0808_utils.h @@ -68,6 +68,9 @@ struct osmo_lcls { bool corr_needed; /**< ยง3.2.2.118 Correlation-Not-Needed */ }; +char *osmo_lcls_dump(const struct osmo_lcls *lcls); +char *osmo_gcr_dump(const struct osmo_lcls *lcls); + extern const struct value_string gsm0808_cell_id_discr_names[]; static inline const char *gsm0808_cell_id_discr_name(enum CELL_IDENT id_discr) { return get_value_string(gsm0808_cell_id_discr_names, id_discr); } -- cgit v1.2.3