1 /* $Id$
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 "saml_statement_abstract.h"
26 
27 /**
28  * SECTION:saml_statement_abstract
29  * @short_description: &lt;saml:StatementAbstract&gt;
30  *
31  * <figure><title>Schema fragment for saml:StatementAbstract</title>
32  * <programlisting><![CDATA[
33  * <element name="Statement" type="saml:StatementAbstractType"/>
34  * <complexType name="StatementAbstractType" abstract="true"/>
35  * ]]></programlisting>
36  * </figure>
37  */
38 
39 
40 /*****************************************************************************/
41 /* private methods                                                           */
42 /*****************************************************************************/
43 
44 /*****************************************************************************/
45 /* instance and class init functions                                         */
46 /*****************************************************************************/
47 
48 static void
class_init(LassoSamlStatementAbstractClass * klass,void * unused G_GNUC_UNUSED)49 class_init(LassoSamlStatementAbstractClass *klass, void *unused G_GNUC_UNUSED)
50 {
51 	LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
52 
53 	nclass->node_data = g_new0(LassoNodeClassData, 1);
54 	lasso_node_class_set_nodename(nclass, "StatementAbstract");
55 	lasso_node_class_set_ns(nclass, LASSO_SAML_ASSERTION_HREF, LASSO_SAML_ASSERTION_PREFIX);
56 }
57 
58 GType
lasso_saml_statement_abstract_get_type()59 lasso_saml_statement_abstract_get_type()
60 {
61 	static GType this_type = 0;
62 
63 	if (!this_type) {
64 		static const GTypeInfo this_info = {
65 			sizeof (LassoSamlStatementAbstractClass),
66 			NULL,
67 			NULL,
68 			(GClassInitFunc) class_init,
69 			NULL,
70 			NULL,
71 			sizeof(LassoSamlStatementAbstract),
72 			0,
73 			NULL,
74 			NULL,
75 		};
76 
77 		this_type = g_type_register_static(LASSO_TYPE_NODE,
78 				"LassoSamlStatementAbstract", &this_info, 0);
79 	}
80 	return this_type;
81 }
82