diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-27 01:40:30 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:55 -0500 |
| commit | edeb0a2727dd9ca6fea0ba95dd87a48601da1304 (patch) | |
| tree | b1da1e50c242c1fb359a9a75bb93c7399f3e5e38 /obt | |
| parent | fdabb69f4f25596df972caa76c85c2aeba26226e (diff) | |
add obt_parse_tree_from_root and use it, cuz it's nice
Diffstat (limited to 'obt')
| -rw-r--r-- | obt/parse.c | 5 | ||||
| -rw-r--r-- | obt/parse.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/obt/parse.c b/obt/parse.c index 61fe5b82..741b19e1 100644 --- a/obt/parse.c +++ b/obt/parse.c @@ -304,6 +304,11 @@ void obt_parse_tree(ObtParseInst *i, xmlNodePtr node) } } +void obt_parse_tree_from_root(ObtParseInst *i) +{ + obt_parse_tree(i, i->root->children); +} + gchar *obt_parse_node_string(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node); diff --git a/obt/parse.h b/obt/parse.h index 3a541a0d..cba7c495 100644 --- a/obt/parse.h +++ b/obt/parse.h @@ -61,6 +61,7 @@ void obt_parse_close(ObtParseInst *inst); void obt_parse_register(ObtParseInst *inst, const gchar *tag, ObtParseCallback func, gpointer data); void obt_parse_tree(ObtParseInst *i, xmlNodePtr node); +void obt_parse_tree_from_root(ObtParseInst *i); /* helpers */ |
