diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-12-02 14:54:43 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-12-02 14:54:43 +0000 |
commit | 05577f56728d3fbae3f484e37e1202d6676b38e2 (patch) | |
tree | 4979b780ebce2fd4eb3a1691661b3ea89402e89e /lasso/xml/saml_statement_abstract.c | |
parent | 169b16b94fc7a581b182307a610b91b1d944d0ae (diff) | |
download | lasso-05577f56728d3fbae3f484e37e1202d6676b38e2.tar.gz lasso-05577f56728d3fbae3f484e37e1202d6676b38e2.tar.xz lasso-05577f56728d3fbae3f484e37e1202d6676b38e2.zip |
last(?) iteration on XmlSnippet; now attached to classes, get_xmlNode and
init_from_xml are no longer necessary in many cases. Previous XmlSnippet
renamed to XmlSnippetObsolete to keep compatibility (id-wsf classes have not
yet been converted).
Diffstat (limited to 'lasso/xml/saml_statement_abstract.c')
-rw-r--r-- | lasso/xml/saml_statement_abstract.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lasso/xml/saml_statement_abstract.c b/lasso/xml/saml_statement_abstract.c index 95be722d..49d3db51 100644 --- a/lasso/xml/saml_statement_abstract.c +++ b/lasso/xml/saml_statement_abstract.c @@ -37,18 +37,6 @@ The schema fragment (oasis-sstc-saml-schema-assertion-1.0.xsd): /* private methods */ /*****************************************************************************/ -static LassoNodeClass *parent_class = NULL; - -static xmlNode* -get_xmlNode(LassoNode *node) -{ - xmlNode *xmlnode; - xmlnode = xmlNewNode(NULL, "StatementAbstract"); - xmlSetNs(xmlnode, xmlNewNs(xmlnode, - LASSO_SAML_ASSERTION_HREF, LASSO_SAML_ASSERTION_PREFIX)); - return xmlnode; -} - /*****************************************************************************/ /* instance and class init functions */ /*****************************************************************************/ @@ -61,8 +49,11 @@ instance_init(LassoSamlStatementAbstract *node) static void class_init(LassoSamlStatementAbstractClass *klass) { - parent_class = g_type_class_peek_parent(klass); - LASSO_NODE_CLASS(klass)->get_xmlNode = get_xmlNode; + LassoNodeClass *nclass = LASSO_NODE_CLASS(klass); + + nclass->node_data = g_new0(LassoNodeClassData, 1); + lasso_node_class_set_nodename(nclass, "StatementAbstract"); + lasso_node_class_set_ns(nclass, LASSO_SAML_ASSERTION_HREF, LASSO_SAML_ASSERTION_PREFIX); } GType |