Change in libosmocore[master]: codec: add missing osmo_amr_type_name function.

dexter gerrit-no-reply at lists.osmocom.org
Mon Aug 23 13:44:11 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/25220 )


Change subject: codec: add missing osmo_amr_type_name function.
......................................................................

codec: add missing osmo_amr_type_name function.

We have value strings for osmo_amr_type, but we do not have a function
that returns us the strings.

Change-Id: I694f56b032537440db6264df5e6a6aa3a2992175
---
M include/osmocom/codec/codec.h
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/25220/1

diff --git a/include/osmocom/codec/codec.h b/include/osmocom/codec/codec.h
index cbdad75..58e3a29 100644
--- a/include/osmocom/codec/codec.h
+++ b/include/osmocom/codec/codec.h
@@ -47,6 +47,9 @@
        AMR_NO_DATA = 15,
 };
 
+static inline const char *osmo_amr_type_name(enum osmo_amr_type type)
+{ return get_value_string(osmo_amr_type_names, type); }
+
 enum osmo_amr_quality {
        AMR_BAD = 0,
        AMR_GOOD = 1

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

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


More information about the gerrit-log mailing list