summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/xml/id-wsf-2.0/Makefile.am25
-rw-r--r--lasso/xml/id-wsf-2.0/dst_data_response_base.c110
-rw-r--r--lasso/xml/id-wsf-2.0/dst_data_response_base.h83
-rw-r--r--lasso/xml/id-wsf-2.0/dst_request.c118
-rw-r--r--lasso/xml/id-wsf-2.0/dst_request.h84
-rw-r--r--lasso/xml/id-wsf-2.0/dst_result_query_base.c136
-rw-r--r--lasso/xml/id-wsf-2.0/dst_result_query_base.h89
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query.c118
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query.h83
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query_item.c134
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query_item.h86
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query_response.c117
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_query_response.h84
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_result_query.c117
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_result_query.h85
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_sort.c127
-rw-r--r--lasso/xml/id-wsf-2.0/dstref_sort.h82
-rw-r--r--lasso/xml/id-wsf-2.0/util_response.c122
-rw-r--r--lasso/xml/id-wsf-2.0/util_response.h86
19 files changed, 1884 insertions, 2 deletions
diff --git a/lasso/xml/id-wsf-2.0/Makefile.am b/lasso/xml/id-wsf-2.0/Makefile.am
index f8d4785d..a2e4af90 100644
--- a/lasso/xml/id-wsf-2.0/Makefile.am
+++ b/lasso/xml/id-wsf-2.0/Makefile.am
@@ -24,9 +24,21 @@ liblasso_xml_id_wsf2_la_SOURCES = \
disco_abstract.c \
disco_providerid.c \
disco_service_type.c \
+ dst_data_response_base.c \
+ dst_request.c \
+ dst_result_query_base.c \
+ dstref_query.c \
+ dstref_query_item.c \
+ dstref_query_response.c \
+ dstref_result_query.c \
+ dstref_sort.c \
+ dst_data_response_base.c \
+ dst_request.c \
+ dst_result_query_base.c \
sec_token.c \
soap_binding_framework.c \
- util_status.c
+ util_status.c \
+ util_response.c
liblassoinclude_HEADERS = \
disco_endpoint_context.h \
@@ -44,7 +56,16 @@ liblassoinclude_HEADERS = \
disco_abstract.h \
disco_providerid.h \
disco_service_type.h \
+ dst_data_response_base.h \
+ dst_request.h \
+ dst_result_query_base.h \
+ dstref_query.h \
+ dstref_query_item.h \
+ dstref_query_response.h \
+ dstref_result_query.h \
+ dstref_sort.h \
sec_token.h \
soap_binding_framework.h \
- util_status.h
+ util_status.h \
+ util_response.c
diff --git a/lasso/xml/id-wsf-2.0/dst_data_response_base.c b/lasso/xml/id-wsf-2.0/dst_data_response_base.c
new file mode 100644
index 00000000..68ca993e
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_data_response_base.c
@@ -0,0 +1,110 @@
+/* $Id: dst_data_response_base.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dst_data_response_base.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-v2.1.xsd):
+ *
+ * <xs:complexType name="DataResponseBaseType">
+ * <xs:complexContent>
+ * <xs:extension base="lu:ResponseType">
+ * <xs:attribute name="timeStamp" use="optional" type="xs:dateTime"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "timeStamp", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstDataResponseBase, timeStamp) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstDataResponseBase *node)
+{
+ node->timeStamp = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstDataResponseBaseClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "DataResponseBase");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DST_HREF, LASSO_IDWSF2_DST_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dst_data_response_base_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstDataResponseBaseClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstDataResponseBase),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_UTIL_RESPONSE,
+ "LassoIdWsf2DstDataResponseBase", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dst_data_response_base_new:
+ *
+ * Creates a new #LassoIdWsf2DstDataResponseBase object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstDataResponseBase object
+ **/
+LassoNode*
+lasso_idwsf2_dst_data_response_base_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/dst_data_response_base.h b/lasso/xml/id-wsf-2.0/dst_data_response_base.h
new file mode 100644
index 00000000..cfb708ce
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_data_response_base.h
@@ -0,0 +1,83 @@
+/* $Id: dst_data_response_base.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DST_DATA_RESPONSE_BASE_H__
+#define __LASSO_IDWSF2_DST_DATA_RESPONSE_BASE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "util_response.h"
+
+#define LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE \
+ (lasso_idwsf2_dst_data_response_base_get_type())
+#define LASSO_IDWSF2_DST_DATA_RESPONSE_BASE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE, \
+ LassoIdWsf2DstDataResponseBase))
+#define LASSO_IDWSF2_DST_DATA_RESPONSE_BASE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE, \
+ LassoIdWsf2DstDataResponseBaseClass))
+#define LASSO_IS_IDWSF2_DST_DATA_RESPONSE_BASE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE))
+#define LASSO_IS_IDWSF2_DST_DATA_RESPONSE_BASE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE))
+#define LASSO_IDWSF2_DST_DATA_RESPONSE_BASE_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE, \
+ LassoIdWsf2DstDataResponseBaseClass))
+
+
+typedef struct _LassoIdWsf2DstDataResponseBase LassoIdWsf2DstDataResponseBase;
+typedef struct _LassoIdWsf2DstDataResponseBaseClass LassoIdWsf2DstDataResponseBaseClass;
+
+
+struct _LassoIdWsf2DstDataResponseBase {
+ LassoIdWsf2UtilResponse parent;
+
+ /*< public >*/
+ /* attributes */
+ char *timeStamp;
+};
+
+
+struct _LassoIdWsf2DstDataResponseBaseClass {
+ LassoIdWsf2UtilResponseClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dst_data_response_base_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dst_data_response_base_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DST_DATA_RESPONSE_BASE_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dst_request.c b/lasso/xml/id-wsf-2.0/dst_request.c
new file mode 100644
index 00000000..e1ee3a93
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_request.c
@@ -0,0 +1,118 @@
+/* $Id: dst_request.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dst_request.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-v2.1.xsd):
+ *
+ * <xs:complexType name="RequestType">
+ * <xs:sequence>
+ * <xs:element ref="lu:Extension" minOccurs="0" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * <xs:attribute ref="lu:itemID" use="optional"/>
+ * <xs:anyAttribute namespace="##other" processContents="lax"/>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "Extension", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRequest, Extension),
+ "LassoIdWsf2Utilextension" },
+ { "itemID", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRequest, itemID) },
+ { "any", SNIPPET_ATTRIBUTE | SNIPPET_ANY,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRequest, attributes) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRequest *node)
+{
+ node->Extension = NULL;
+ node->itemID = NULL;
+ node->attributes = g_hash_table_new_full(
+ g_str_hash, g_str_equal, g_free, g_free);
+}
+
+static void
+class_init(LassoIdWsf2DstRequestClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "Request");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DST_HREF, LASSO_IDWSF2_DST_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dst_request_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRequestClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRequest),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_NODE,
+ "LassoIdWsf2DstRequest", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dst_request_new:
+ *
+ * Creates a new #LassoIdWsf2DstRequest object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRequest object
+ **/
+LassoNode*
+lasso_idwsf2_dst_request_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DST_REQUEST, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/dst_request.h b/lasso/xml/id-wsf-2.0/dst_request.h
new file mode 100644
index 00000000..99825189
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_request.h
@@ -0,0 +1,84 @@
+/* $Id: dst_request.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DST_REQUEST_H__
+#define __LASSO_IDWSF2_DST_REQUEST_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+
+#define LASSO_TYPE_IDWSF2_DST_REQUEST (lasso_idwsf2_dst_request_get_type())
+#define LASSO_IDWSF2_DST_REQUEST(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DST_REQUEST, \
+ LassoIdWsf2DstRequest))
+#define LASSO_IDWSF2_DST_REQUEST_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DST_REQUEST, \
+ LassoIdWsf2DstRequestClass))
+#define LASSO_IS_IDWSF2_DST_REQUEST(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DST_REQUEST))
+#define LASSO_IS_IDWSF2_DST_REQUEST_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DST_REQUEST))
+#define LASSO_IDWSF2_DST_REQUEST_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DST_REQUEST, \
+ LassoIdWsf2DstRequestClass))
+
+
+typedef struct _LassoIdWsf2DstRequest LassoIdWsf2DstRequest;
+typedef struct _LassoIdWsf2DstRequestClass LassoIdWsf2DstRequestClass;
+
+
+struct _LassoIdWsf2DstRequest {
+ LassoNode parent;
+
+ /*< public >*/
+ /* elements */
+ GList *Extension; /* of LassoIdWsf2Utilextension */
+ /* attributes */
+ char *itemID;
+ GHashTable *attributes;
+};
+
+
+struct _LassoIdWsf2DstRequestClass {
+ LassoNodeClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dst_request_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dst_request_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DST_REQUEST_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dst_result_query_base.c b/lasso/xml/id-wsf-2.0/dst_result_query_base.c
new file mode 100644
index 00000000..82b00254
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_result_query_base.c
@@ -0,0 +1,136 @@
+/* $Id: dst_result_query_base.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dst_result_query_base.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-v2.1.xsd):
+ *
+ * <xs:complexType name="ResultQueryBaseType">
+ * <xs:sequence>
+ * <xs:element ref="dst:ChangeFormat" minOccurs="0" maxOccurs="2"/>
+ * </xs:sequence>
+ * <xs:attributeGroup ref="dst:selectQualif"/>
+ * <xs:attribute ref="lu:itemIDRef" use="optional"/>
+ * <xs:attribute name="contingency" use="optional" type="xs:boolean"/>
+ * <xs:attribute name="includeCommonAttributes" use="optional" type="xs:boolean"
+ * default="0"/>
+ * <xs:attribute name="changedSince" use="optional" type="xs:dateTime"/>
+ * <xs:attribute ref="lu:itemID" use="optional"/>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "ChangeFormat", SNIPPET_CONTENT,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, ChangeFormat) },
+ { "itemIDRef", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, itemIDRef) },
+ { "contingency", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, contingency) },
+ { "includeCommonAttributes", SNIPPET_ATTRIBUTE | SNIPPET_BOOLEAN,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, includeCommonAttributes) },
+ { "changedSince", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, changedSince) },
+ { "itemID", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, itemID) },
+ { "objectType", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, objectType) },
+ { "predefined", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstResultQueryBase, predefined) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstResultQueryBase *node)
+{
+ node->ChangeFormat = NULL;
+ node->itemIDRef = NULL;
+ node->contingency = NULL;
+ node->includeCommonAttributes = NULL;
+ node->changedSince = NULL;
+ node->itemID = NULL;
+ node->objectType = NULL;
+ node->predefined = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstResultQueryBaseClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "ResultQueryBase");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DST_HREF, LASSO_IDWSF2_DST_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dst_result_query_base_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstResultQueryBaseClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstResultQueryBase),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_NODE,
+ "LassoIdWsf2DstResultQueryBase", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dst_result_query_base_new:
+ *
+ * Creates a new #LassoIdWsf2DstResultQueryBase object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstResultQueryBase object
+ **/
+LassoNode*
+lasso_idwsf2_dst_result_query_base_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/dst_result_query_base.h b/lasso/xml/id-wsf-2.0/dst_result_query_base.h
new file mode 100644
index 00000000..7423a1f8
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dst_result_query_base.h
@@ -0,0 +1,89 @@
+/* $Id: dst_result_query_base.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DST_RESULT_QUERY_BASE_H__
+#define __LASSO_IDWSF2_DST_RESULT_QUERY_BASE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+
+#define LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE (lasso_idwsf2_dst_result_query_base_get_type())
+#define LASSO_IDWSF2_DST_RESULT_QUERY_BASE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE, \
+ LassoIdWsf2DstResultQueryBase))
+#define LASSO_IDWSF2_DST_RESULT_QUERY_BASE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE, \
+ LassoIdWsf2DstResultQueryBaseClass))
+#define LASSO_IS_IDWSF2_DST_RESULT_QUERY_BASE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE))
+#define LASSO_IS_IDWSF2_DST_RESULT_QUERY_BASE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE))
+#define LASSO_IDWSF2_DST_RESULT_QUERY_BASE_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE, \
+ LassoIdWsf2DstResultQueryBaseClass))
+
+
+typedef struct _LassoIdWsf2DstResultQueryBase LassoIdWsf2DstResultQueryBase;
+typedef struct _LassoIdWsf2DstResultQueryBaseClass LassoIdWsf2DstResultQueryBaseClass;
+
+
+struct _LassoIdWsf2DstResultQueryBase {
+ LassoNode parent;
+
+ /*< public >*/
+ /* elements */
+ char *ChangeFormat;
+ /* attributes */
+ char *itemIDRef;
+ char *contingency;
+ char *includeCommonAttributes;
+ char *changedSince;
+ char *itemID;
+ char *objectType;
+ char *predefined;
+};
+
+
+struct _LassoIdWsf2DstResultQueryBaseClass {
+ LassoNodeClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dst_result_query_base_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dst_result_query_base_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DST_RESULT_QUERY_BASE_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dstref_query.c b/lasso/xml/id-wsf-2.0/dstref_query.c
new file mode 100644
index 00000000..9f5f82b6
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query.c
@@ -0,0 +1,118 @@
+/* $Id: dstref_query.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dstref_query.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-ref-v2.1.xsd):
+ *
+ * <xs:complexType name="QueryType">
+ * <xs:complexContent>
+ * <xs:extension base="dst:RequestType">
+ * <xs:sequence>
+ * <xs:element ref="dstref:TestItem" minOccurs="0" maxOccurs="unbounded"/>
+ * <xs:element ref="dstref:QueryItem" minOccurs="0" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "TestItem", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQuery, TestItem),
+ "LassoIdWsf2DstRefTestItem" },
+ { "QueryItem", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQuery, QueryItem),
+ "LassoIdWsf2DstRefQueryItem" },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRefQuery *node)
+{
+ node->TestItem = NULL;
+ node->QueryItem = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstRefQueryClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "Query");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dstref_query_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRefQueryClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRefQuery),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_IDWSF2_DST_REQUEST,
+ "LassoIdWsf2DstRefQuery", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dstref_query_new:
+ *
+ * Creates a new #LassoIdWsf2DstRefQuery object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefQuery object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_query_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_QUERY, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/dstref_query.h b/lasso/xml/id-wsf-2.0/dstref_query.h
new file mode 100644
index 00000000..3bda6534
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query.h
@@ -0,0 +1,83 @@
+/* $Id: dstref_query.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DSTREF_QUERY_H__
+#define __LASSO_IDWSF2_DSTREF_QUERY_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "dst_request.h"
+
+#define LASSO_TYPE_IDWSF2_DSTREF_QUERY (lasso_idwsf2_dstref_query_get_type())
+#define LASSO_IDWSF2_DSTREF_QUERY(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY, \
+ LassoIdWsf2DstRefQuery))
+#define LASSO_IDWSF2_DSTREF_QUERY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY, \
+ LassoIdWsf2DstRefQueryClass))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY))
+#define LASSO_IDWSF2_DSTREF_QUERY_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY, \
+ LassoIdWsf2DstRefQueryClass))
+
+
+typedef struct _LassoIdWsf2DstRefQuery LassoIdWsf2DstRefQuery;
+typedef struct _LassoIdWsf2DstRefQueryClass LassoIdWsf2DstRefQueryClass;
+
+
+struct _LassoIdWsf2DstRefQuery {
+ LassoIdWsf2DstRequest parent;
+
+ /*< public >*/
+ /* elements */
+ GList *TestItem; /* of LassoIdWsf2DstRefTestItem */
+ GList *QueryItem; /* of LassoIdWsf2DstRefQueryItem */
+};
+
+
+struct _LassoIdWsf2DstRefQueryClass {
+ LassoIdWsf2DstRequestClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dstref_query_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_query_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DSTREF_QUERY_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dstref_query_item.c b/lasso/xml/id-wsf-2.0/dstref_query_item.c
new file mode 100644
index 00000000..97709112
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query_item.c
@@ -0,0 +1,134 @@
+/* $Id: dstref_query_item.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dstref_query_item.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-ref-v2.1.xsd):
+ *
+ * <xs:complexType name="QueryItemType">
+ * <xs:complexContent>
+ * <xs:extension base="dstref:ResultQueryType">
+ * <xs:attributeGroup ref="dst:PaginationAttributeGroup"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "count", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, count) },
+ { "offset", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, offset) },
+ { "setID", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, setID) },
+ { "setReq", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryItem, setReq) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRefQueryItem *node)
+{
+ node->count = NULL;
+ node->offset = NULL;
+ node->setID = NULL;
+ node->setReq = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstRefQueryItemClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "QueryItem");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dstref_query_item_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRefQueryItemClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRefQueryItem),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY,
+ "LassoIdWsf2DstRefQueryItem", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dstref_query_item_new:
+ *
+ * Creates a new #LassoIdWsf2DstRefQueryItem object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefQueryItem object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_query_item_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM, NULL);
+}
+
+LassoIdWsf2DstRefQueryItem*
+lasso_idwsf2_dstref_query_item_new_full(const gchar *item_xpath, const gchar *item_id)
+{
+ LassoIdWsf2DstRefResultQuery *item_result_query = LASSO_IDWSF2_DSTREF_RESULT_QUERY(
+ g_object_new(LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM, NULL));
+ LassoIdWsf2DstResultQueryBase *item_result_query_base = LASSO_IDWSF2_DST_RESULT_QUERY_BASE(
+ item_result_query);
+
+ item_result_query->Select = g_strdup(item_xpath);
+ item_result_query_base->itemID = g_strdup(item_id);
+
+ return LASSO_IDWSF2_DSTREF_QUERY_ITEM(item_result_query);
+}
+
diff --git a/lasso/xml/id-wsf-2.0/dstref_query_item.h b/lasso/xml/id-wsf-2.0/dstref_query_item.h
new file mode 100644
index 00000000..06912327
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query_item.h
@@ -0,0 +1,86 @@
+/* $Id: dstref_query_item.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DSTREF_QUERY_ITEM_H__
+#define __LASSO_IDWSF2_DSTREF_QUERY_ITEM_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "dstref_result_query.h"
+
+#define LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM (lasso_idwsf2_dstref_query_item_get_type())
+#define LASSO_IDWSF2_DSTREF_QUERY_ITEM(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM, \
+ LassoIdWsf2DstRefQueryItem))
+#define LASSO_IDWSF2_DSTREF_QUERY_ITEM_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM, \
+ LassoIdWsf2DstRefQueryItemClass))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY_ITEM(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY_ITEM_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM))
+#define LASSO_IDWSF2_DSTREF_QUERY_ITEM_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_ITEM, \
+ LassoIdWsf2DstRefQueryItemClass))
+
+
+typedef struct _LassoIdWsf2DstRefQueryItem LassoIdWsf2DstRefQueryItem;
+typedef struct _LassoIdWsf2DstRefQueryItemClass LassoIdWsf2DstRefQueryItemClass;
+
+
+struct _LassoIdWsf2DstRefQueryItem {
+ LassoIdWsf2DstRefResultQuery parent;
+
+ /*< public >*/
+ /* attributes */
+ char *count;
+ char *offset;
+ char *setID;
+ char *setReq;
+};
+
+
+struct _LassoIdWsf2DstRefQueryItemClass {
+ LassoIdWsf2DstRefResultQueryClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dstref_query_item_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_query_item_new(void);
+
+LASSO_EXPORT LassoIdWsf2DstRefQueryItem* lasso_idwsf2_dstref_query_item_new_full(
+ const gchar *item_xpath, const gchar *item_id);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DSTREF_QUERY_ITEM_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dstref_query_response.c b/lasso/xml/id-wsf-2.0/dstref_query_response.c
new file mode 100644
index 00000000..40773991
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query_response.c
@@ -0,0 +1,117 @@
+/* $Id: dstref_query_response.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dstref_query_response.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-ref-v2.1.xsd):
+ *
+ * <xs:complexType name="QueryResponseType">
+ * <xs:complexContent>
+ * <xs:extension base="dst:DataResponseBaseType">
+ * <xs:sequence>
+ * <xs:element ref="dst:TestResult" minOccurs="0" maxOccurs="unbounded"/>
+ * <xs:element ref="dstref:Data" minOccurs="0" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "TestResult", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryResponse, TestResult) },
+ { "Data", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefQueryResponse, Data),
+ "LassoIdWsf2DstRefData" },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRefQueryResponse *node)
+{
+ node->TestResult = NULL;
+ node->Data = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstRefQueryResponseClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "QueryResponse");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dstref_query_response_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRefQueryResponseClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRefQueryResponse),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_IDWSF2_DST_DATA_RESPONSE_BASE,
+ "LassoIdWsf2DstRefQueryResponse", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dstref_query_response_new:
+ *
+ * Creates a new #LassoIdWsf2DstRefQueryResponse object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefQueryResponse object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_query_response_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/dstref_query_response.h b/lasso/xml/id-wsf-2.0/dstref_query_response.h
new file mode 100644
index 00000000..4058e625
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_query_response.h
@@ -0,0 +1,84 @@
+/* $Id: dstref_query_response.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DSTREF_QUERY_RESPONSE_H__
+#define __LASSO_IDWSF2_DSTREF_QUERY_RESPONSE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "dst_data_response_base.h"
+
+#define LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE \
+ (lasso_idwsf2_dstref_query_response_get_type())
+#define LASSO_IDWSF2_DSTREF_QUERY_RESPONSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE, \
+ LassoIdWsf2DstRefQueryResponse))
+#define LASSO_IDWSF2_DSTREF_QUERY_RESPONSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE, \
+ LassoIdWsf2DstRefQueryResponseClass))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY_RESPONSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE))
+#define LASSO_IS_IDWSF2_DSTREF_QUERY_RESPONSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE))
+#define LASSO_IDWSF2_DSTREF_QUERY_RESPONSE_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DSTREF_QUERY_RESPONSE, \
+ LassoIdWsf2DstRefQueryResponseClass))
+
+
+typedef struct _LassoIdWsf2DstRefQueryResponse LassoIdWsf2DstRefQueryResponse;
+typedef struct _LassoIdWsf2DstRefQueryResponseClass LassoIdWsf2DstRefQueryResponseClass;
+
+
+struct _LassoIdWsf2DstRefQueryResponse {
+ LassoIdWsf2DstDataResponseBase parent;
+
+ /*< public >*/
+ /* elements */
+ GList *TestResult;
+ GList *Data; /* of LassoIdWsf2DstRefData */
+};
+
+
+struct _LassoIdWsf2DstRefQueryResponseClass {
+ LassoIdWsf2DstDataResponseBaseClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dstref_query_response_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_query_response_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DSTREF_QUERY_RESPONSE_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dstref_result_query.c b/lasso/xml/id-wsf-2.0/dstref_result_query.c
new file mode 100644
index 00000000..89251c2d
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_result_query.c
@@ -0,0 +1,117 @@
+/* $Id: dstref_result_query.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dstref_result_query.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-ref-v2.1.xsd):
+ *
+ * <xs:complexType name="ResultQueryType">
+ * <xs:complexContent>
+ * <xs:extension base="dst:ResultQueryBaseType">
+ * <xs:sequence>
+ * <xs:element ref="dstref:Select" minOccurs="0" maxOccurs="1"/>
+ * <xs:element name="Sort" minOccurs="0" maxOccurs="1" type="dstref:SortType"/>
+ * </xs:sequence>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "Select", SNIPPET_CONTENT, G_STRUCT_OFFSET(LassoIdWsf2DstRefResultQuery, Select) },
+ { "Sort", SNIPPET_NODE,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefResultQuery, Sort),
+ "LassoIdWsf2DstRefSort" },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRefResultQuery *node)
+{
+ node->Select = NULL;
+ node->Sort = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstRefResultQueryClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "ResultQuery");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dstref_result_query_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRefResultQueryClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRefResultQuery),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_IDWSF2_DST_RESULT_QUERY_BASE,
+ "LassoIdWsf2DstRefResultQuery", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dstref_result_query_new:
+ *
+ * Creates a new #LassoIdWsf2DstRefResultQuery object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefResultQuery object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_result_query_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY, NULL);
+}
+
diff --git a/lasso/xml/id-wsf-2.0/dstref_result_query.h b/lasso/xml/id-wsf-2.0/dstref_result_query.h
new file mode 100644
index 00000000..38777f03
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_result_query.h
@@ -0,0 +1,85 @@
+/* $Id: dstref_result_query.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DSTREF_RESULT_QUERY_H__
+#define __LASSO_IDWSF2_DSTREF_RESULT_QUERY_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "dst_result_query_base.h"
+#include "dstref_sort.h"
+
+#define LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY \
+ (lasso_idwsf2_dstref_result_query_get_type())
+#define LASSO_IDWSF2_DSTREF_RESULT_QUERY(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY, \
+ LassoIdWsf2DstRefResultQuery))
+#define LASSO_IDWSF2_DSTREF_RESULT_QUERY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY, \
+ LassoIdWsf2DstRefResultQueryClass))
+#define LASSO_IS_IDWSF2_DSTREF_RESULT_QUERY(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY))
+#define LASSO_IS_IDWSF2_DSTREF_RESULT_QUERY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY))
+#define LASSO_IDWSF2_DSTREF_RESULT_QUERY_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DSTREF_RESULT_QUERY, \
+ LassoIdWsf2DstRefResultQueryClass))
+
+
+typedef struct _LassoIdWsf2DstRefResultQuery LassoIdWsf2DstRefResultQuery;
+typedef struct _LassoIdWsf2DstRefResultQueryClass LassoIdWsf2DstRefResultQueryClass;
+
+
+struct _LassoIdWsf2DstRefResultQuery {
+ LassoIdWsf2DstResultQueryBase parent;
+
+ /*< public >*/
+ /* elements */
+ gchar *Select;
+ LassoIdWsf2DstRefSort *Sort;
+};
+
+
+struct _LassoIdWsf2DstRefResultQueryClass {
+ LassoIdWsf2DstResultQueryBaseClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dstref_result_query_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_result_query_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DSTREF_RESULT_QUERY_H__ */
diff --git a/lasso/xml/id-wsf-2.0/dstref_sort.c b/lasso/xml/id-wsf-2.0/dstref_sort.c
new file mode 100644
index 00000000..11af9b6f
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_sort.c
@@ -0,0 +1,127 @@
+/* $Id: dstref_sort.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "dstref_sort.h"
+
+/*
+ * Schema fragment (liberty-idwsf-dst-ref-v2.1.xsd):
+ *
+ * <xs:complexType name="SortType">
+ * <xs:simpleContent>
+ * <xs:extension base="xs:string"/>
+ * </xs:simpleContent>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "content", SNIPPET_TEXT_CHILD,
+ G_STRUCT_OFFSET(LassoIdWsf2DstRefSort, content) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2DstRefSort *node)
+{
+ node->content = NULL;
+}
+
+static void
+class_init(LassoIdWsf2DstRefSortClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "Sort");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_dstref_sort_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2DstRefSortClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2DstRefSort),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_NODE,
+ "LassoIdWsf2DstRefSort", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_dstref_sort_new:
+ *
+ * Creates a new #LassoIdWsf2DstRefSort object.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefSort object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_sort_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_SORT, NULL);
+}
+
+
+/**
+ * lasso_idwsf2_dstref_sort_new_with_string:
+ * @content:
+ *
+ * Creates a new #LassoIdWsf2DstRefSort object and initializes it
+ * with @content.
+ *
+ * Return value: a newly created #LassoIdWsf2DstRefSort object
+ **/
+LassoNode*
+lasso_idwsf2_dstref_sort_new_with_string(char *content)
+{
+ LassoIdWsf2DstRefSort *object;
+ object = g_object_new(LASSO_TYPE_IDWSF2_DSTREF_SORT, NULL);
+ object->content = g_strdup(content);
+ return LASSO_NODE(object);
+}
diff --git a/lasso/xml/id-wsf-2.0/dstref_sort.h b/lasso/xml/id-wsf-2.0/dstref_sort.h
new file mode 100644
index 00000000..19c5d81a
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/dstref_sort.h
@@ -0,0 +1,82 @@
+/* $Id: dstref_sort.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_DSTREF_SORT_H__
+#define __LASSO_IDWSF2_DSTREF_SORT_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+
+#define LASSO_TYPE_IDWSF2_DSTREF_SORT (lasso_idwsf2_dstref_sort_get_type())
+#define LASSO_IDWSF2_DSTREF_SORT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_SORT, \
+ LassoIdWsf2DstRefSort))
+#define LASSO_IDWSF2_DSTREF_SORT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_SORT, \
+ LassoIdWsf2DstRefSortClass))
+#define LASSO_IS_IDWSF2_DSTREF_SORT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_DSTREF_SORT))
+#define LASSO_IS_IDWSF2_DSTREF_SORT_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_DSTREF_SORT))
+#define LASSO_IDWSF2_DSTREF_SORT_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_DSTREF_SORT, \
+ LassoIdWsf2DstRefSortClass))
+
+
+typedef struct _LassoIdWsf2DstRefSort LassoIdWsf2DstRefSort;
+typedef struct _LassoIdWsf2DstRefSortClass LassoIdWsf2DstRefSortClass;
+
+
+struct _LassoIdWsf2DstRefSort {
+ LassoNode parent;
+
+ /*< public >*/
+ /* elements */
+ char *content;
+};
+
+
+struct _LassoIdWsf2DstRefSortClass {
+ LassoNodeClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_dstref_sort_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_sort_new(void);
+
+LASSO_EXPORT LassoNode* lasso_idwsf2_dstref_sort_new_with_string(char *content);
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_DSTREF_SORT_H__ */
diff --git a/lasso/xml/id-wsf-2.0/util_response.c b/lasso/xml/id-wsf-2.0/util_response.c
new file mode 100644
index 00000000..95efd2d6
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/util_response.c
@@ -0,0 +1,122 @@
+/* $Id: util_response.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "util_response.h"
+
+/*
+ * Schema fragment (liberty-idwsf-utility-v2.0.xsd):
+ *
+ * <xs:complexType name="ResponseType">
+ * <xs:sequence>
+ * <xs:element ref="Status" minOccurs="1" maxOccurs="1"/>
+ * <xs:element ref="Extension" minOccurs="0" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * <xs:attribute ref="itemIDRef" use="optional"/>
+ * <xs:anyAttribute namespace="##other" processContents="lax"/>
+ * </xs:complexType>
+ */
+
+/*****************************************************************************/
+/* private methods */
+/*****************************************************************************/
+
+
+static struct XmlSnippet schema_snippets[] = {
+ { "Status", SNIPPET_NODE,
+ G_STRUCT_OFFSET(LassoIdWsf2UtilResponse, Status) },
+ { "Extension", SNIPPET_LIST_NODES,
+ G_STRUCT_OFFSET(LassoIdWsf2UtilResponse, Extension),
+ "LassoIdWsf2Utilextension" },
+ { "itemIDRef", SNIPPET_ATTRIBUTE,
+ G_STRUCT_OFFSET(LassoIdWsf2UtilResponse, itemIDRef) },
+ { "any", SNIPPET_ATTRIBUTE | SNIPPET_ANY,
+ G_STRUCT_OFFSET(LassoIdWsf2UtilResponse, attributes) },
+ {NULL, 0, 0}
+};
+
+static LassoNodeClass *parent_class = NULL;
+
+
+/*****************************************************************************/
+/* instance and class init functions */
+/*****************************************************************************/
+
+static void
+instance_init(LassoIdWsf2UtilResponse *node)
+{
+ node->Status = NULL;
+ node->Extension = NULL;
+ node->itemIDRef = NULL;
+ node->attributes = g_hash_table_new_full(
+ g_str_hash, g_str_equal, g_free, g_free);
+}
+
+static void
+class_init(LassoIdWsf2UtilResponseClass *klass)
+{
+ LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
+
+ parent_class = g_type_class_peek_parent(klass);
+ nclass->node_data = g_new0(LassoNodeClassData, 1);
+ lasso_node_class_set_nodename(nclass, "Response");
+ lasso_node_class_set_ns(nclass, LASSO_IDWSF2_UTIL_HREF, LASSO_IDWSF2_UTIL_PREFIX);
+ lasso_node_class_add_snippets(nclass, schema_snippets);
+}
+
+GType
+lasso_idwsf2_util_response_get_type()
+{
+ static GType this_type = 0;
+
+ if (!this_type) {
+ static const GTypeInfo this_info = {
+ sizeof (LassoIdWsf2UtilResponseClass),
+ NULL,
+ NULL,
+ (GClassInitFunc) class_init,
+ NULL,
+ NULL,
+ sizeof(LassoIdWsf2UtilResponse),
+ 0,
+ (GInstanceInitFunc) instance_init,
+ };
+
+ this_type = g_type_register_static(LASSO_TYPE_NODE,
+ "LassoIdWsf2UtilResponse", &this_info, 0);
+ }
+ return this_type;
+}
+
+/**
+ * lasso_idwsf2_util_response_new:
+ *
+ * Creates a new #LassoIdWsf2UtilResponse object.
+ *
+ * Return value: a newly created #LassoIdWsf2UtilResponse object
+ **/
+LassoNode*
+lasso_idwsf2_util_response_new()
+{
+ return g_object_new(LASSO_TYPE_IDWSF2_UTIL_RESPONSE, NULL);
+}
diff --git a/lasso/xml/id-wsf-2.0/util_response.h b/lasso/xml/id-wsf-2.0/util_response.h
new file mode 100644
index 00000000..8a371991
--- /dev/null
+++ b/lasso/xml/id-wsf-2.0/util_response.h
@@ -0,0 +1,86 @@
+/* $Id: util_response.h,v 1.0 2005/10/14 15:17:55 fpeters Exp $
+ *
+ * Lasso - A free implementation of the Liberty Alliance specifications.
+ *
+ * Copyright (C) 2004-2007 Entr'ouvert
+ * http://lasso.entrouvert.org
+ *
+ * Authors: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LASSO_IDWSF2_UTIL_RESPONSE_H__
+#define __LASSO_IDWSF2_UTIL_RESPONSE_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <lasso/xml/xml.h>
+#include "util_status.h"
+
+#define LASSO_TYPE_IDWSF2_UTIL_RESPONSE (lasso_idwsf2_util_response_get_type())
+#define LASSO_IDWSF2_UTIL_RESPONSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), \
+ LASSO_TYPE_IDWSF2_UTIL_RESPONSE, \
+ LassoIdWsf2UtilResponse))
+#define LASSO_IDWSF2_UTIL_RESPONSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), \
+ LASSO_TYPE_IDWSF2_UTIL_RESPONSE, \
+ LassoIdWsf2UtilResponseClass))
+#define LASSO_IS_IDWSF2_UTIL_RESPONSE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
+ LASSO_TYPE_IDWSF2_UTIL_RESPONSE))
+#define LASSO_IS_IDWSF2_UTIL_RESPONSE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ LASSO_TYPE_IDWSF2_UTIL_RESPONSE))
+#define LASSO_IDWSF2_UTIL_RESPONSE_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), \
+ LASSO_TYPE_IDWSF2_UTIL_RESPONSE, \
+ LassoIdWsf2UtilResponseClass))
+
+
+typedef struct _LassoIdWsf2UtilResponse LassoIdWsf2UtilResponse;
+typedef struct _LassoIdWsf2UtilResponseClass LassoIdWsf2UtilResponseClass;
+
+
+struct _LassoIdWsf2UtilResponse {
+ LassoNode parent;
+
+ /*< public >*/
+ /* elements */
+ /* XXX */ void *Status;
+ GList *Extension; /* of LassoIdWsf2Utilextension */
+ /* attributes */
+ char *itemIDRef;
+ GHashTable *attributes;
+};
+
+
+struct _LassoIdWsf2UtilResponseClass {
+ LassoNodeClass parent;
+};
+
+LASSO_EXPORT GType lasso_idwsf2_util_response_get_type(void);
+LASSO_EXPORT LassoNode* lasso_idwsf2_util_response_new(void);
+
+
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LASSO_IDWSF2_UTIL_RESPONSE_H__ */