Home | History | Annotate | Download | only in libcutils

Lines Matching refs:root

39 cnode* config_find(cnode *root, const char *name)
44 for(node = root->first_child; node; node = node->next)
51 static cnode* _config_create(cnode *root, const char *name)
57 if(root->last_child)
58 root->last_child->next = node;
60 root->first_child = node;
62 root->last_child = node;
67 int config_bool(cnode *root, const char *name, int _default)
71 node = config_find(root, name);
85 const char* config_str(cnode *root, const char *name, const char *_default)
89 node = config_find(root, name);
95 void config_set(cnode *root, const char *name, const char *value)
99 node = config_find(root, name);
103 node = _config_create(root, name);
262 static int parse_expr(cstate *cs, cnode *root)
267 node = config_find(root, cs->text);
269 node = _config_create(root, cs->text);
292 void config_load(cnode *root, char *data)
302 if(parse_expr(&cs, root))
312 void config_load_file(cnode *root, const char *fn)
316 config_load(root, data);