From eddeeff3100c59cf919f767143fc1bce5a71af43 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 13 Feb 2017 03:45:55 +0100 Subject: 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 --- include/osmocom/sigtran/xua_msg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/osmocom/sigtran') 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); -- cgit v1.2.3