<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11078">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm_utils: add function to get value strings for gsm48_chan_mode<br><br>The enum gsm48_chan_mode has value strings, but no function to retrieve<br>those strings. Lets add one.<br><br>Change-Id: If715705e1ebdfcfdfae1c2099932f7bb8b3861a7<br>---<br>M include/osmocom/gsm/gsm_utils.h<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/78/11078/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h</span><br><span>index 6ff4459..7eda5b9 100644</span><br><span>--- a/include/osmocom/gsm/gsm_utils.h</span><br><span>+++ b/include/osmocom/gsm/gsm_utils.h</span><br><span>@@ -228,6 +228,8 @@</span><br><span> };</span><br><span> </span><br><span> extern const struct value_string gsm_chan_t_names[];</span><br><span style="color: hsl(120, 100%, 40%);">+static inline const char *gsm_chan_t_name(enum gsm48_chan_mode val)</span><br><span style="color: hsl(120, 100%, 40%);">+{ return get_value_string(gsm_chan_t_names, val); }</span><br><span> </span><br><span> /* Deprectated functions */</span><br><span> /* Limit encoding and decoding to use no more than this amount of buffer bytes */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11078">change 11078</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11078"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If715705e1ebdfcfdfae1c2099932f7bb8b3861a7 </div>
<div style="display:none"> Gerrit-Change-Number: 11078 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>