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.orgdexter has submitted this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/24928 ) Change subject: mgcp_trunk: add value string for trunk type. ...................................................................... mgcp_trunk: add value string for trunk type. Change-Id: I634fb2a03744117e976430468ab5c57d50ab0089 --- M include/osmocom/mgcp/mgcp_trunk.h M src/libosmo-mgcp/mgcp_trunk.c 2 files changed, 10 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve daniel: Looks good to me, but someone else must approve dexter: Looks good to me, approved diff --git a/include/osmocom/mgcp/mgcp_trunk.h b/include/osmocom/mgcp/mgcp_trunk.h index c62f731..326b16a 100644 --- a/include/osmocom/mgcp/mgcp_trunk.h +++ b/include/osmocom/mgcp/mgcp_trunk.h @@ -13,6 +13,10 @@ MGCP_TRUNK_E1, }; +extern const struct value_string mgcp_trunk_type_strs[]; +static inline const char *mgcp_trunk_type_strs_str(enum mgcp_trunk_type val) +{ return get_value_string(mgcp_trunk_type_strs, val); } + struct mgcp_trunk { struct llist_head entry; diff --git a/src/libosmo-mgcp/mgcp_trunk.c b/src/libosmo-mgcp/mgcp_trunk.c index 8ff6f6a..5c9a888 100644 --- a/src/libosmo-mgcp/mgcp_trunk.c +++ b/src/libosmo-mgcp/mgcp_trunk.c @@ -28,6 +28,12 @@ #include <osmocom/mgcp/mgcp_e1.h> #include <osmocom/abis/e1_input.h> +const struct value_string mgcp_trunk_type_strs[] = { + { MGCP_TRUNK_VIRTUAL, "virtual" }, + { MGCP_TRUNK_E1, "e1" }, + { 0, NULL } +}; + /*! allocate trunk and add it (if required) to the trunk list. * (called once at startup by VTY). * \param[in] cfg mgcp configuration. -- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/24928 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: I634fb2a03744117e976430468ab5c57d50ab0089 Gerrit-Change-Number: 24928 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann at sysmocom.de> Gerrit-Reviewer: dexter <pmaier at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de> Gerrit-Reviewer: osmith <osmith at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210714/92b533bc/attachment.htm>