mirror of https://gerrit.osmocom.org/libosmocore
add osmo_prim_operation_name()
Also remove the explicit array dimension from the .h file. Change-Id: I9f43428af654a5674ac3035fe4db1394aac7a7af
This commit is contained in:
parent
9b7c9ae6ca
commit
ba1e20055f
|
@ -30,7 +30,11 @@ enum osmo_prim_operation {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue