summaryrefslogtreecommitdiffstats
path: root/lasso/xml/ws/wsa_attributed_uri.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-03-02 11:58:04 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-03-02 11:58:04 +0000
commit0ff7329ad21fa96c3111a70806babd76edd00e6d (patch)
tree28388ed3bf37f70e397dcb6b7a4d41f400b89249 /lasso/xml/ws/wsa_attributed_uri.c
parent5098e33eb34390af9fbf27350a0b4c20dbe91573 (diff)
downloadlasso-0ff7329ad21fa96c3111a70806babd76edd00e6d.tar.gz
lasso-0ff7329ad21fa96c3111a70806babd76edd00e6d.tar.xz
lasso-0ff7329ad21fa96c3111a70806babd76edd00e6d.zip
XML: move registry mapping into the *_get_type() functions
* lassoxml/disco_send_single_logout.c: * lassoxml/id-wsf-2.0/sb2_user_interaction_header.c: * lassoxml/id-wsf-2.0/subsref_app_data.c: * lassoxml/lib_assertion.c: * lassoxml/saml-2.0/saml2_condition_abstract.c: * lassoxml/saml-2.0/saml2_encrypted_element.c: * lassoxml/ws/wsa_attributed_uri.c: * lassoxml/ws/wsa_endpoint_reference.c: class_init is only called the first time an object of the given type is created, registry mappings must exist before this time, so I moved the registration code to the _get_type() functions.
Diffstat (limited to 'lasso/xml/ws/wsa_attributed_uri.c')
-rw-r--r--lasso/xml/ws/wsa_attributed_uri.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lasso/xml/ws/wsa_attributed_uri.c b/lasso/xml/ws/wsa_attributed_uri.c
index 6d594aa6..06b56e01 100644
--- a/lasso/xml/ws/wsa_attributed_uri.c
+++ b/lasso/xml/ws/wsa_attributed_uri.c
@@ -75,9 +75,6 @@ class_init(LassoWsAddrAttributedURIClass *klass)
lasso_node_class_set_nodename(nclass, "AttributedURI");
lasso_node_class_set_ns(nclass, LASSO_WSA_HREF, LASSO_WSA_PREFIX);
lasso_node_class_add_snippets(nclass, schema_snippets);
- lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "Action", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI");
- lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "MessageID", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI");
- lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "To", LASSO_LASSO_HREF, "LassoWsAddrAttributedURI");
}
GType
@@ -101,6 +98,12 @@ lasso_wsa_attributed_uri_get_type()
this_type = g_type_register_static(LASSO_TYPE_NODE,
"LassoWsAddrAttributedURI", &this_info, 0);
+ lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "Action",
+ LASSO_LASSO_HREF, "LassoWsAddrAttributedURI");
+ lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "MessageID",
+ LASSO_LASSO_HREF, "LassoWsAddrAttributedURI");
+ lasso_registry_default_add_direct_mapping(LASSO_WSA_HREF, "To", LASSO_LASSO_HREF,
+ "LassoWsAddrAttributedURI");
}
return this_type;
}