1 /* $Id: dstref_delete_response.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
2  *
3  * Lasso - A free implementation of the Liberty Alliance specifications.
4  *
5  * Copyright (C) 2004-2007 Entr'ouvert
6  * http://lasso.entrouvert.org
7  *
8  * Authors: See AUTHORS file in top-level directory.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #include "../private.h"
25 #include "dstref_delete_response.h"
26 #include "idwsf2_strings.h"
27 
28 /**
29  * SECTION:dstref_delete_response
30  * @short_description: &lt;dstref:DeleteResponse&gt;
31  *
32  * <figure><title>Schema fragment for dstref:DeleteResponse</title>
33  * <programlisting><![CDATA[
34  *
35  * <xs:complexType name="DeleteResponseType">
36  *   <xs:complexContent>
37  *     <xs:extension base="lu:ResponseType"/>
38  *   </xs:complexContent>
39  * </xs:complexType>
40  * ]]></programlisting>
41  * </figure>
42  */
43 
44 /*****************************************************************************/
45 /* private methods                                                           */
46 /*****************************************************************************/
47 
48 
49 static struct XmlSnippet schema_snippets[] = {
50 	{NULL, 0, 0, NULL, NULL, NULL}
51 };
52 
53 static LassoNodeClass *parent_class = NULL;
54 
55 
56 /*****************************************************************************/
57 /* instance and class init functions                                         */
58 /*****************************************************************************/
59 
60 static void
class_init(LassoIdWsf2DstRefDeleteResponseClass * klass,void * unused G_GNUC_UNUSED)61 class_init(LassoIdWsf2DstRefDeleteResponseClass *klass, void *unused G_GNUC_UNUSED)
62 {
63 	LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
64 
65 	parent_class = g_type_class_peek_parent(klass);
66 	nclass->node_data = g_new0(LassoNodeClassData, 1);
67 	lasso_node_class_set_nodename(nclass, "DeleteResponse");
68 	lasso_node_class_set_ns(nclass, LASSO_IDWSF2_DSTREF_HREF, LASSO_IDWSF2_DSTREF_PREFIX);
69 	lasso_node_class_add_snippets(nclass, schema_snippets);
70 }
71 
72 GType
lasso_idwsf2_dstref_delete_response_get_type()73 lasso_idwsf2_dstref_delete_response_get_type()
74 {
75 	static GType this_type = 0;
76 
77 	if (!this_type) {
78 		static const GTypeInfo this_info = {
79 			sizeof (LassoIdWsf2DstRefDeleteResponseClass),
80 			NULL,
81 			NULL,
82 			(GClassInitFunc) class_init,
83 			NULL,
84 			NULL,
85 			sizeof(LassoIdWsf2DstRefDeleteResponse),
86 			0,
87 			NULL,
88 			NULL
89 		};
90 
91 		this_type = g_type_register_static(LASSO_TYPE_IDWSF2_UTIL_RESPONSE,
92 				"LassoIdWsf2DstRefDeleteResponse", &this_info, 0);
93 	}
94 	return this_type;
95 }
96 
97 /**
98  * lasso_idwsf2_dstref_delete_response_new:
99  *
100  * Creates a new #LassoIdWsf2DstRefDeleteResponse object.
101  *
102  * Return value: a newly created #LassoIdWsf2DstRefDeleteResponse object
103  **/
104 LassoIdWsf2DstRefDeleteResponse*
lasso_idwsf2_dstref_delete_response_new()105 lasso_idwsf2_dstref_delete_response_new()
106 {
107 	return g_object_new(LASSO_TYPE_IDWSF2_DSTREF_DELETE_RESPONSE, NULL);
108 }
109