summaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-25 16:01:15 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-29 13:10:37 +0200
commiteff215a8bb766e62a02bcc0f4334470a53475001 (patch)
tree4a0b46f5009098e76958aa99f63997778c968ddb /openbsc/src
parent7ca035decaaed460e66286868b1f14ccd3e00013 (diff)
osmo_gsup_messge.[ch] documentation update (doxygen)
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/osmo_gsup_messages.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/src/gprs/osmo_gsup_messages.c b/openbsc/src/gprs/osmo_gsup_messages.c
index e820b5a..430cba7 100644
--- a/openbsc/src/gprs/osmo_gsup_messages.c
+++ b/openbsc/src/gprs/osmo_gsup_messages.c
@@ -174,6 +174,12 @@ parse_error:
return -1;
}
+/*! Decode (parse) a GSUP message
+ * \param[in] const_data input data to be parsed
+ * \param[in] data_len length of input (\a const_data)
+ * \param[out] gsup_msg callee-allocated output data structure
+ * \returns 0 on success; negative otherwise
+ */
int osmo_gsup_decode(const uint8_t *const_data, size_t data_len,
struct osmo_gsup_message *gsup_msg)
{
@@ -392,6 +398,10 @@ static void encode_auth_info(struct msgb *msg, enum osmo_gsup_iei iei,
*len_field = msgb_length(msg) - old_len;
}
+/*! Encode a GSUP message
+ * \param[out] msg message buffer to which encoded message is written
+ * \param[in] gsup_msg \ref osmo_gsup_message data to be encoded
+ */
void osmo_gsup_encode(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)
{
uint8_t u8;