From fbd02fa8ccb27472412189febcc22f77d83ba0ac Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 25 Apr 2016 15:19:35 +0200 Subject: tlv: Import osmo_shift_* and osmo_match_shift_* from openbsc These routines have nothing to do with specifically the BSC, so import them to the TLV parser we keep in libosmogsm. --- include/osmocom/gsm/tlv.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h index c19034f0..cf09969d 100644 --- a/include/osmocom/gsm/tlv.h +++ b/include/osmocom/gsm/tlv.h @@ -436,4 +436,15 @@ static inline uint32_t tlvp_val32_unal(const struct tlv_parsed *tp, int pos) return res; } +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, + uint8_t tag, size_t len, uint8_t **value); +int osmo_shift_tlv(uint8_t **data, size_t *data_len, + uint8_t *tag, uint8_t **value, size_t *value_len); +int osmo_match_shift_tlv(uint8_t **data, size_t *data_len, + uint8_t tag, uint8_t **value, size_t *value_len); +int osmo_shift_lv(uint8_t **data, size_t *data_len, + uint8_t **value, size_t *value_len); + /*! @} */ -- cgit v1.2.3