summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-01-15 16:37:09 +0100
committerMax <msuraev@sysmocom.de>2019-02-26 09:16:38 +0000
commit5ec0cf5475a7b31efa3b122f53e6c2a0e1908c20 (patch)
tree97b33cd7d5940bb3f84b2d5e01580784f2898050 /include/osmocom/gsm
parent79f92709396c04f991f1d4f9b888de75f53d2224 (diff)
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
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r--include/osmocom/gsm/gsm0808_utils.h3
1 files changed, 3 insertions, 0 deletions
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); }