From dbd3a92f70325b7a02d0a637929732f297fb2612 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 2 Jan 2017 14:10:30 +0100 Subject: Add parsed TLV helpers from OsmoBTS Add functions to copy and merge parsed TLV structures from OsmoBTS. Change-Id: Ieaaaed19da9c069fe451faa53d24c5b84d7d5615 --- include/osmocom/gsm/tlv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h index cf09969d..701fe688 100644 --- a/include/osmocom/gsm/tlv.h +++ b/include/osmocom/gsm/tlv.h @@ -436,6 +436,8 @@ static inline uint32_t tlvp_val32_unal(const struct tlv_parsed *tp, int pos) return res; } +struct tlv_parsed *osmo_tlvp_copy(const struct tlv_parsed *tp_orig, void *ctx); +int osmo_tlvp_merge(struct tlv_parsed *dst, const struct tlv_parsed *src); int osmo_shift_v_fixed(uint8_t **data, size_t *data_len, size_t len, uint8_t **value); int osmo_match_shift_tv_fixed(uint8_t **data, size_t *data_len, -- cgit v1.2.3