summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/identity.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-02-28 15:51:04 +0100
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2011-03-01 10:58:54 +0100
commit7ef67c8d7e0ded8cbf9abb274b4ef9655fda5731 (patch)
tree0c71547528f464def972504fc1891a1944c4e597 /lasso/id-ff/identity.c
parentff065bf750768b0f0009bc40475f2f4cc0c34973 (diff)
downloadlasso-7ef67c8d7e0ded8cbf9abb274b4ef9655fda5731.tar.gz
lasso-7ef67c8d7e0ded8cbf9abb274b4ef9655fda5731.tar.xz
lasso-7ef67c8d7e0ded8cbf9abb274b4ef9655fda5731.zip
[core] add missing namespace definitions to internal objects
Identity, Lecp, Login, Logout, NameIdentifierMapping, NameRegistration, Session, AssertionQuery, Ecp and NameIdManagement objects were missing a namespace association to their GObject class. It broke when you try to dump a node created by lasso_node_new_from_dump.
Diffstat (limited to 'lasso/id-ff/identity.c')
-rw-r--r--lasso/id-ff/identity.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c
index 74982292..a2d35d92 100644
--- a/lasso/id-ff/identity.c
+++ b/lasso/id-ff/identity.c
@@ -305,9 +305,13 @@ static void
class_init(LassoIdentityClass *klass)
{
parent_class = g_type_class_peek_parent(klass);
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
- LASSO_NODE_CLASS(klass)->get_xmlNode = get_xmlNode;
- LASSO_NODE_CLASS(klass)->init_from_xml = init_from_xml;
+ nclass->get_xmlNode = get_xmlNode;
+ nclass->init_from_xml = init_from_xml;
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "Identity");
+ lasso_node_class_set_ns(nclass, LASSO_LASSO_HREF, LASSO_LASSO_PREFIX);
G_OBJECT_CLASS(klass)->dispose = dispose;
G_OBJECT_CLASS(klass)->finalize = finalize;