Change in libosmocore[master]: gsm_04_08: add function to get value string

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Jul 12 15:52:40 UTC 2018


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/9975


Change subject: gsm_04_08: add function to get value string
......................................................................

gsm_04_08: add function to get value string

The value string table gsm48_chan_mode_names[] lacks a function
to get the value string by a value. Lets add one.

Change-Id: I0757bcc278c140e18249e35864338e19cdaa3cf7
---
M include/osmocom/gsm/protocol/gsm_04_08.h
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/75/9975/1

diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h
index 4c98ff2..4635014 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -553,6 +553,8 @@
 };
 
 extern const struct value_string gsm48_chan_mode_names[];
+static inline const char *gsm48_chan_mode_name(enum gsm48_chan_mode val)
+{ return get_value_string(gsm48_chan_mode_names, val); }
 
 /* Chapter 9.1.2 */
 struct gsm48_ass_cmd {

-- 
To view, visit https://gerrit.osmocom.org/9975
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0757bcc278c140e18249e35864338e19cdaa3cf7
Gerrit-Change-Number: 9975
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180712/a64b759a/attachment.htm>


More information about the gerrit-log mailing list