diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-03 16:36:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-03 18:03:43 +0200 |
commit | 105557122411906754a2f7e0ef418e064b8b1d09 (patch) | |
tree | b23b690722b8861bfbcfc56f3bb505c6109d84a1 /include | |
parent | 7febd6c6d80e092c4032754e6c137dbf7da2b7c6 (diff) |
xua_msg: Add xua_msg_free_tag() and xua_msg_copy_part()
... also, mark input to xua_msg_find_tag as 'const' pointer.
Change-Id: I083634db9c3606bcff87700f253054a38a20816d
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/sigtran/xua_msg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/osmocom/sigtran/xua_msg.h b/include/osmocom/sigtran/xua_msg.h index 2a6e3ae..23f92c5 100644 --- a/include/osmocom/sigtran/xua_msg.h +++ b/include/osmocom/sigtran/xua_msg.h @@ -50,7 +50,10 @@ void xua_msg_free(struct xua_msg *msg); int xua_msg_add_data(struct xua_msg *msg, uint16_t tag, uint16_t len, uint8_t *dat); -struct xua_msg_part *xua_msg_find_tag(struct xua_msg *msg, uint16_t tag); +struct xua_msg_part *xua_msg_find_tag(const struct xua_msg *msg, uint16_t tag); +int xua_msg_free_tag(struct xua_msg *xua, uint16_t tag); +int xua_msg_copy_part(struct xua_msg *xua_out, uint16_t tag_out, + const struct xua_msg *xua_in, uint16_t tag_in); struct xua_msg *xua_from_msg(const int version, uint16_t len, uint8_t *data); struct msgb *xua_to_msg(const int version, struct xua_msg *msg); |