summaryrefslogtreecommitdiffstats
path: root/lasso/xml/ws/wsa_endpoint_reference.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2007-07-10 08:50:56 +0000
committerFrederic Peters <fpeters@entrouvert.com>2007-07-10 08:50:56 +0000
commit6204c8be9c8b2d9d12c8df33017f091004b9f186 (patch)
tree11cdc88fe7f8b25f403a1128740d1a12964a2cfb /lasso/xml/ws/wsa_endpoint_reference.c
parent3940aaa707ab4f10abff6edfb11d60ad94dbda13 (diff)
downloadlasso-6204c8be9c8b2d9d12c8df33017f091004b9f186.tar.gz
lasso-6204c8be9c8b2d9d12c8df33017f091004b9f186.tar.xz
lasso-6204c8be9c8b2d9d12c8df33017f091004b9f186.zip
adds all classes from ID-WSF 2 required schemas; with appropriate changes to
other files.
Diffstat (limited to 'lasso/xml/ws/wsa_endpoint_reference.c')
-rw-r--r--lasso/xml/ws/wsa_endpoint_reference.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/lasso/xml/ws/wsa_endpoint_reference.c b/lasso/xml/ws/wsa_endpoint_reference.c
index a9bb294a..ebc67170 100644
--- a/lasso/xml/ws/wsa_endpoint_reference.c
+++ b/lasso/xml/ws/wsa_endpoint_reference.c
@@ -39,16 +39,6 @@
*/
/*****************************************************************************/
-/* public methods */
-/*****************************************************************************/
-
-void
-lasso_wsa_endpoint_reference_destroy(LassoWsAddrEndpointReference *epr)
-{
- lasso_node_destroy(LASSO_NODE(epr));
-}
-
-/*****************************************************************************/
/* private methods */
/*****************************************************************************/
@@ -63,7 +53,9 @@ static struct XmlSnippet schema_snippets[] = {
{ "Metadata", SNIPPET_NODE,
G_STRUCT_OFFSET(LassoWsAddrEndpointReference, Metadata),
"LassoWsAddrMetadata" },
- { "any", SNIPPET_ATTRIBUTE | SNIPPET_ANY,
+ { "", SNIPPET_LIST_NODES | SNIPPET_ANY,
+ G_STRUCT_OFFSET(LassoWsAddrEndpointReference, any) },
+ { "attributes", SNIPPET_ATTRIBUTE | SNIPPET_ANY,
G_STRUCT_OFFSET(LassoWsAddrEndpointReference, attributes) },
{NULL, 0, 0}
};
@@ -81,6 +73,9 @@ instance_init(LassoWsAddrEndpointReference *node)
node->Address = NULL;
node->ReferenceParameters = NULL;
node->Metadata = NULL;
+ node->any = NULL;
+ node->attributes = g_hash_table_new_full(
+ g_str_hash, g_str_equal, g_free, g_free);
}
static void
@@ -90,7 +85,7 @@ class_init(LassoWsAddrEndpointReferenceClass *klass)
parent_class = g_type_class_peek_parent(klass);
nclass->node_data = g_new0(LassoNodeClassData, 1);
- lasso_node_class_set_nodename(nclass, "EndpointReference");
+ lasso_node_class_set_nodename(nclass, "EndpointReference");
lasso_node_class_set_ns(nclass, LASSO_WSA_HREF, LASSO_WSA_PREFIX);
lasso_node_class_add_snippets(nclass, schema_snippets);
}