aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sigtran
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-02-13 03:45:55 +0100
committerHarald Welte <laforge@gnumonks.org>2017-02-13 15:09:17 +0100
commiteddeeff3100c59cf919f767143fc1bce5a71af43 (patch)
tree8397486949c524d674263fbd006d7fdf9f34b8ff /include/osmocom/sigtran
parent0ebde0c42de86df0c941d8533758d3cedef725e7 (diff)
Add xua_msg_part_get_u32() to get U32 value from xua_msg_part
Sometimes one already has the xua_msg_part and thus can avoid the lookup that's done by xua_msg_get_u32(). Change-Id: Ie11c35f9528313d0b35786a361d853addd17364f
Diffstat (limited to 'include/osmocom/sigtran')
-rw-r--r--include/osmocom/sigtran/xua_msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/sigtran/xua_msg.h b/include/osmocom/sigtran/xua_msg.h
index 5dc3894..2a6e3ae 100644
--- a/include/osmocom/sigtran/xua_msg.h
+++ b/include/osmocom/sigtran/xua_msg.h
@@ -60,5 +60,6 @@ void xua_set_log_area(int log_area);
int msgb_t16l16vp_put(struct msgb *msg, uint16_t tag, uint16_t len, const uint8_t *data);
int msgb_t16l16vp_put_u32(struct msgb *msg, uint16_t tag, uint32_t val);
int xua_msg_add_u32(struct xua_msg *xua, uint16_t iei, uint32_t val);
+uint32_t xua_msg_part_get_u32(struct xua_msg_part *part);
uint32_t xua_msg_get_u32(struct xua_msg *xua, uint16_t iei);
int xua_msg_add_sccp_addr(struct xua_msg *xua, uint16_t iei, const struct osmo_sccp_addr *addr);