[db] Add function to get a human readable string for data and media kind

This commit is contained in:
chme
2018-02-24 11:28:42 +01:00
parent d59e62312a
commit 66bdb7c0a9
3 changed files with 74 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
#define STOB(s) ((s) * 4)
#define BTOS(b) ((b) / 4)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
struct onekeyval {
char *name;
@@ -57,7 +58,6 @@ safe_strdup(const char *str);
char *
safe_asprintf(const char *fmt, ...);
/* Key/value functions */
struct keyval *
keyval_alloc(void);