From 8ca25338df3f909c47a6ef3c3040497a1d390bff Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Mon, 16 Apr 2007 16:49:42 +0000 Subject: md_association_add xml nodes --- .../xml/id-wsf-2.0/disco_svc_md_association_add.c | 113 ++++++++++++++++++++ .../xml/id-wsf-2.0/disco_svc_md_association_add.h | 84 +++++++++++++++ .../disco_svc_md_association_add_response.c | 114 +++++++++++++++++++++ .../disco_svc_md_association_add_response.h | 87 ++++++++++++++++ 4 files changed, 398 insertions(+) create mode 100644 lasso/xml/id-wsf-2.0/disco_svc_md_association_add.c create mode 100644 lasso/xml/id-wsf-2.0/disco_svc_md_association_add.h create mode 100644 lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.c create mode 100644 lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h (limited to 'lasso/xml') diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.c b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.c new file mode 100644 index 00000000..fc171ebf --- /dev/null +++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.c @@ -0,0 +1,113 @@ +/* $Id: disco_svc_md_association_add.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 "disco_svc_md_association_add.h" + +/* + * Schema fragment (liberty-idwsf-disco-svc-v2.0.xsd): + * + * + * + * + * + * + * + */ + +/*****************************************************************************/ +/* private methods */ +/*****************************************************************************/ + + +static struct XmlSnippet schema_snippets[] = { + { "SvcMDID", SNIPPET_LIST_CONTENT, + G_STRUCT_OFFSET(LassoIdWsf2DiscoSvcMDAssociationAdd, SvcMDID) }, + { "any", SNIPPET_ATTRIBUTE | SNIPPET_ANY, + G_STRUCT_OFFSET(LassoIdWsf2DiscoSvcMDAssociationAdd, attributes) }, + {NULL, 0, 0} +}; + +static LassoNodeClass *parent_class = NULL; + + +/*****************************************************************************/ +/* instance and class init functions */ +/*****************************************************************************/ + +static void +instance_init(LassoIdWsf2DiscoSvcMDAssociationAdd *node) +{ + node->SvcMDID = NULL; + node->attributes = g_hash_table_new_full( + g_str_hash, g_str_equal, g_free, g_free); +} + +static void +class_init(LassoIdWsf2DiscoSvcMDAssociationAddClass *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, "SvcMDAssociationAdd"); + lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DISCO_HREF, LASSO_IDWSF2_DISCO_PREFIX); + lasso_node_class_add_snippets(nclass, schema_snippets); +} + +GType +lasso_idwsf2_disco_svc_md_association_add_get_type() +{ + static GType this_type = 0; + + if (!this_type) { + static const GTypeInfo this_info = { + sizeof (LassoIdWsf2DiscoSvcMDAssociationAddClass), + NULL, + NULL, + (GClassInitFunc) class_init, + NULL, + NULL, + sizeof(LassoIdWsf2DiscoSvcMDAssociationAdd), + 0, + (GInstanceInitFunc) instance_init, + }; + + this_type = g_type_register_static(LASSO_TYPE_NODE, + "LassoIdWsf2DiscoSvcMDAssociationAdd", &this_info, 0); + } + return this_type; +} + +/** + * lasso_idwsf2_disco_svc_md_association_add_new: + * + * Creates a new #LassoIdWsf2DiscoSvcMDAssociationAdd object. + * + * Return value: a newly created #LassoIdWsf2DiscoSvcMDAssociationAdd object + **/ +LassoNode* +lasso_idwsf2_disco_svc_md_association_add_new() +{ + return g_object_new(LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD, NULL); +} diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.h b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.h new file mode 100644 index 00000000..436654b8 --- /dev/null +++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add.h @@ -0,0 +1,84 @@ +/* $Id: disco_svc_md_association_add.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_DISCO_SVC_MD_ASSOCIATION_ADD_H__ +#define __LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include + +#define LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD \ + (lasso_idwsf2_disco_svc_md_association_add_get_type()) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD, \ + LassoIdWsf2DiscoSvcMDAssociationAdd)) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD, \ + LassoIdWsf2DiscoSvcMDAssociationAddClass)) +#define LASSO_IS_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD)) +#define LASSO_IS_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD)) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_GET_CLASS(o) \ + (G_TYPE_INSTANCE_GET_CLASS ((o), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD, \ + LassoIdWsf2DiscoSvcMDAssociationAddClass)) + + +typedef struct _LassoIdWsf2DiscoSvcMDAssociationAdd LassoIdWsf2DiscoSvcMDAssociationAdd; +typedef struct _LassoIdWsf2DiscoSvcMDAssociationAddClass LassoIdWsf2DiscoSvcMDAssociationAddClass; + + +struct _LassoIdWsf2DiscoSvcMDAssociationAdd { + LassoNode parent; + + /*< public >*/ + /* elements */ + GList *SvcMDID; + /* attributes */ + GHashTable *attributes; +}; + + +struct _LassoIdWsf2DiscoSvcMDAssociationAddClass { + LassoNodeClass parent; +}; + +LASSO_EXPORT GType lasso_idwsf2_disco_svc_md_association_add_get_type(void); +LASSO_EXPORT LassoNode* lasso_idwsf2_disco_svc_md_association_add_new(void); + + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_H__ */ diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.c b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.c new file mode 100644 index 00000000..bdcb5db7 --- /dev/null +++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.c @@ -0,0 +1,114 @@ +/* $Id: disco_svc_md_association_add_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 "disco_svc_md_association_add_response.h" + +/* + * Schema fragment (liberty-idwsf-disco-svc-v2.0.xsd): + * + * + * + * + * + * + * + */ + +/*****************************************************************************/ +/* private methods */ +/*****************************************************************************/ + + +static struct XmlSnippet schema_snippets[] = { + { "Status", SNIPPET_NODE, + G_STRUCT_OFFSET(LassoIdWsf2DiscoSvcMDAssociationAddResponse, Status), + "LassoIdWsf2UtilStatus" }, + { "any", SNIPPET_ATTRIBUTE | SNIPPET_ANY, + G_STRUCT_OFFSET(LassoIdWsf2DiscoSvcMDAssociationAddResponse, attributes) }, + {NULL, 0, 0} +}; + +static LassoNodeClass *parent_class = NULL; + + +/*****************************************************************************/ +/* instance and class init functions */ +/*****************************************************************************/ + +static void +instance_init(LassoIdWsf2DiscoSvcMDAssociationAddResponse *node) +{ + node->Status = NULL; + node->attributes = g_hash_table_new_full( + g_str_hash, g_str_equal, g_free, g_free); +} + +static void +class_init(LassoIdWsf2DiscoSvcMDAssociationAddResponseClass *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, "SvcMDAssociationAddResponse"); + lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DISCO_HREF, LASSO_IDWSF2_DISCO_PREFIX); + lasso_node_class_add_snippets(nclass, schema_snippets); +} + +GType +lasso_idwsf2_disco_svc_md_association_add_response_get_type() +{ + static GType this_type = 0; + + if (!this_type) { + static const GTypeInfo this_info = { + sizeof (LassoIdWsf2DiscoSvcMDAssociationAddResponseClass), + NULL, + NULL, + (GClassInitFunc) class_init, + NULL, + NULL, + sizeof(LassoIdWsf2DiscoSvcMDAssociationAddResponse), + 0, + (GInstanceInitFunc) instance_init, + }; + + this_type = g_type_register_static(LASSO_TYPE_NODE, + "LassoIdWsf2DiscoSvcMDAssociationAddResponse", &this_info, 0); + } + return this_type; +} + +/** + * lasso_idwsf2_disco_svc_md_association_add_response_new: + * + * Creates a new #LassoIdWsf2DiscoSvcMDAssociationAddResponse object. + * + * Return value: a newly created #LassoIdWsf2DiscoSvcMDAssociationAddResponse object + **/ +LassoNode* +lasso_idwsf2_disco_svc_md_association_add_response_new() +{ + return g_object_new(LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE, NULL); +} diff --git a/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h new file mode 100644 index 00000000..a257e69b --- /dev/null +++ b/lasso/xml/id-wsf-2.0/disco_svc_md_association_add_response.h @@ -0,0 +1,87 @@ +/* $Id: disco_svc_md_association_add_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_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_H__ +#define __LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include +#include "util_status.h" + +#define LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE \ + (lasso_idwsf2_disco_svc_md_association_add_response_get_type()) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE, \ + LassoIdWsf2DiscoSvcMDAssociationAddResponse)) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE, \ + LassoIdWsf2DiscoSvcMDAssociationAddResponseClass)) +#define LASSO_IS_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE)) +#define LASSO_IS_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE)) +#define LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_GET_CLASS(o) \ + (G_TYPE_INSTANCE_GET_CLASS ((o), \ + LASSO_TYPE_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE, \ + LassoIdWsf2DiscoSvcMDAssociationAddResponseClass)) + + +typedef struct _LassoIdWsf2DiscoSvcMDAssociationAddResponse \ + LassoIdWsf2DiscoSvcMDAssociationAddResponse; +typedef struct _LassoIdWsf2DiscoSvcMDAssociationAddResponseClass \ + LassoIdWsf2DiscoSvcMDAssociationAddResponseClass; + + +struct _LassoIdWsf2DiscoSvcMDAssociationAddResponse { + LassoNode parent; + + /*< public >*/ + /* elements */ + LassoIdWsf2UtilStatus *Status; + /* attributes */ + GHashTable *attributes; +}; + + +struct _LassoIdWsf2DiscoSvcMDAssociationAddResponseClass { + LassoNodeClass parent; +}; + +LASSO_EXPORT GType lasso_idwsf2_disco_svc_md_association_add_response_get_type(void); +LASSO_EXPORT LassoNode* lasso_idwsf2_disco_svc_md_association_add_response_new(void); + + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __LASSO_IDWSF2_DISCO_SVC_MD_ASSOCIATION_ADD_RESPONSE_H__ */ -- cgit