summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:50:18 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:50:18 +0000
commit78bf7c86d72930b209046973ff7f0a22aea4ae3e (patch)
tree4969673742b7dd54c52b608493888d66a29d9645
parent8b92dbc683ede9a68d58e5a9143d33323d61cba8 (diff)
use attribute snippet support in <lib:FederationTerminationNotification>
-rw-r--r--lasso/xml/lib_federation_termination_notification.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lasso/xml/lib_federation_termination_notification.c b/lasso/xml/lib_federation_termination_notification.c
index f9153d42..b26618d3 100644
--- a/lasso/xml/lib_federation_termination_notification.c
+++ b/lasso/xml/lib_federation_termination_notification.c
@@ -64,6 +64,7 @@
struct XmlSnippet snippets[] = { \
{ "ProviderID", 'c', (void**)&(ob->ProviderID) }, \
{ "NameIdentifier", 'n', (void**)&(ob->NameIdentifier) }, \
+ { "consent", 'a', (void**)&(ob->consent) }, \
{ NULL, 0, NULL} \
};
@@ -80,9 +81,6 @@ get_xmlNode(LassoNode *node)
xmlSetNs(xmlnode, xmlNewNs(xmlnode, LASSO_LIB_HREF, LASSO_LIB_PREFIX));
lasso_node_build_xml_with_snippets(xmlnode, snippets);
- if (ob->consent)
- xmlSetProp(xmlnode, "consent", ob->consent);
-
return xmlnode;
}
@@ -90,11 +88,9 @@ static int
init_from_xml(LassoNode *node, xmlNode *xmlnode)
{
snippets();
-
if (parent_class->init_from_xml(node, xmlnode))
return 1;
lasso_node_init_xml_with_snippets(xmlnode, snippets);
- ob->consent = xmlGetProp(xmlnode, "consent");
return 0;
}