blob: 0ff0ad71dc6afdf274db2ff4d8f3773864af56a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef UTILS_H
#define UTILS_H
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
struct value_string {
unsigned int value;
const char *str;
};
const char *get_value_string(const struct value_string *vs, uint32_t val);
#endif
|