path: root/include
diff options
authorHarald Welte <laforge@gnumonks.org>2016-04-25 15:19:35 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-05 18:49:27 +0200
commitfbd02fa8ccb27472412189febcc22f77d83ba0ac (patch)
treebb2ffedd6be20842186fcf30e3aa16d7d17f30c5 /include
parent2d2e2cca0dc1d62addc9c9fcb3a59f343fc3baf6 (diff)
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.
Diffstat (limited to 'include')
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h
index c19034f..cf09969 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);
/*! @} */