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


Change subject: add osmo_prim_operation_name()
......................................................................

add osmo_prim_operation_name()

Also remove the explicit array dimension from the .h file.

Change-Id: I9f43428af654a5674ac3035fe4db1394aac7a7af
---
M include/osmocom/core/prim.h
1 file changed, 16 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/35/31435/1

diff --git a/include/osmocom/core/prim.h b/include/osmocom/core/prim.h
index 99eabff..8e6b436 100644
--- a/include/osmocom/core/prim.h
+++ b/include/osmocom/core/prim.h
@@ -30,7 +30,11 @@
        PRIM_OP_CONFIRM,        /*!< confirm */
 };

-extern const struct value_string osmo_prim_op_names[5];
+extern const struct value_string osmo_prim_op_names[];
+static inline const char *osmo_prim_operation_name(enum osmo_prim_operation 
val)
+{
+       return get_value_string(osmo_prim_op_names, val);
+}

 /*!< The upper 8 byte of the technology, the lower 24 bits for the SAP */
 #define _SAP_GSM_SHIFT 24

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9f43428af654a5674ac3035fe4db1394aac7a7af
Gerrit-Change-Number: 31435
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>
Gerrit-MessageType: newchange

Reply via email to