Allow an xml tag to be unregistered from the xml parser.
This commit is contained in:
parent
69672e9d07
commit
d58ed5c413
2 changed files with 6 additions and 0 deletions
|
@ -112,6 +112,11 @@ void obt_xml_register(ObtXmlInst *i, const gchar *tag,
|
||||||
g_hash_table_insert(i->callbacks, c->tag, c);
|
g_hash_table_insert(i->callbacks, c->tag, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void obt_xml_unregister(ObtXmlInst *i, const gchar *tag)
|
||||||
|
{
|
||||||
|
g_hash_table_remove(i->callbacks, tag);
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean load_file(ObtXmlInst *i,
|
static gboolean load_file(ObtXmlInst *i,
|
||||||
const gchar *domain,
|
const gchar *domain,
|
||||||
const gchar *filename,
|
const gchar *filename,
|
||||||
|
|
|
@ -62,6 +62,7 @@ void obt_xml_close(ObtXmlInst *inst);
|
||||||
|
|
||||||
void obt_xml_register(ObtXmlInst *inst, const gchar *tag,
|
void obt_xml_register(ObtXmlInst *inst, const gchar *tag,
|
||||||
ObtXmlCallback func, gpointer data);
|
ObtXmlCallback func, gpointer data);
|
||||||
|
void obt_xml_unregister(ObtXmlInst *inst, const gchar *tag);
|
||||||
void obt_xml_tree(ObtXmlInst *i, xmlNodePtr node);
|
void obt_xml_tree(ObtXmlInst *i, xmlNodePtr node);
|
||||||
void obt_xml_tree_from_root(ObtXmlInst *i);
|
void obt_xml_tree_from_root(ObtXmlInst *i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue