6 #include <osmocore/utils.h>
8 const char *get_value_string(const struct value_string *vs, uint32_t val)
13 if (vs[i].value == 0 && vs[i].str == NULL)
15 if (vs[i].value == val)
21 int get_string_value(const struct value_string *vs, const char *str)
26 if (vs[i].value == 0 && vs[i].str == NULL)
28 if (!strcasecmp(vs[i].str, str))