aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/iuh/context_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/iuh/context_map.h')
-rw-r--r--include/osmocom/iuh/context_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/iuh/context_map.h b/include/osmocom/iuh/context_map.h
index 8d957d6..6279b91 100644
--- a/include/osmocom/iuh/context_map.h
+++ b/include/osmocom/iuh/context_map.h
@@ -8,8 +8,13 @@ enum hnbgw_context_map_state {
MAP_S_ACTIVE, /* currently active map */
MAP_S_RESERVED1, /* just disconnected, still resrved */
MAP_S_RESERVED2, /* still reserved */
+ MAP_S_NUM_STATES /* Number of states, keep this at the end */
};
+extern const struct value_string hnbgw_context_map_state_names[];
+static inline const char *hnbgw_context_map_state_name(enum hnbgw_context_map_state val)
+{ return get_value_string(hnbgw_context_map_state_names, val); }
+
struct hnb_context;
struct hnbgw_cnlink;