aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocore/utils.h')
-rw-r--r--include/osmocore/utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
index 198f45a9..cf3b4607 100644
--- a/include/osmocore/utils.h
+++ b/include/osmocore/utils.h
@@ -3,4 +3,15 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#include <stdint.h>
+
+struct value_string {
+ unsigned int value;
+ const char *str;
+};
+
+const char *get_value_string(const struct value_string *vs, uint32_t val);
+int get_string_value(const struct value_string *vs, const char *str);
+
+
#endif