#pragma once | |
#include <osmocom/core/linuxlist.h> | |
/* a single node in the tree of values */ | |
struct value_node { | |
/* our element in the parent list */ | |
struct llist_head list; | |
/* the display name */ | |
const char *name; | |
/* the value (if any) */ | |
const char *value; | |
/* the children (if value == NULL) */ | |
struct llist_head children; | |
}; | |
struct value_node *value_node_add(void *ctx, struct value_node *parent, | |
const char *name, const char *value); | |
void value_node_del(struct value_node *node); |