Blame lasso/xml/saml_statement_abstract.c

Packit 228f82
/* $Id$
Packit 228f82
 *
Packit 228f82
 * Lasso - A free implementation of the Liberty Alliance specifications.
Packit 228f82
 *
Packit 228f82
 * Copyright (C) 2004-2007 Entr'ouvert
Packit 228f82
 * http://lasso.entrouvert.org
Packit 228f82
 *
Packit 228f82
 * Authors: See AUTHORS file in top-level directory.
Packit 228f82
 *
Packit 228f82
 * This program is free software; you can redistribute it and/or modify
Packit 228f82
 * it under the terms of the GNU General Public License as published by
Packit 228f82
 * the Free Software Foundation; either version 2 of the License, or
Packit 228f82
 * (at your option) any later version.
Packit 228f82
 *
Packit 228f82
 * This program is distributed in the hope that it will be useful,
Packit 228f82
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 228f82
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 228f82
 * GNU General Public License for more details.
Packit 228f82
 *
Packit 228f82
 * You should have received a copy of the GNU General Public License
Packit 228f82
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit 228f82
 */
Packit 228f82
Packit 228f82
#include "private.h"
Packit 228f82
#include "saml_statement_abstract.h"
Packit 228f82
Packit 228f82
/**
Packit 228f82
 * SECTION:saml_statement_abstract
Packit 228f82
 * @short_description: <saml:StatementAbstract>
Packit 228f82
 *
Packit 228f82
 * <figure><title>Schema fragment for saml:StatementAbstract</title>
Packit 228f82
 * <programlisting>
Packit 228f82
 * <element name="Statement" type="saml:StatementAbstractType"/>
Packit 228f82
 * <complexType name="StatementAbstractType" abstract="true"/>
Packit 228f82
 * ]]></programlisting>
Packit 228f82
 * </figure>
Packit 228f82
 */
Packit 228f82
Packit 228f82
Packit 228f82
/*****************************************************************************/
Packit 228f82
/* private methods                                                           */
Packit 228f82
/*****************************************************************************/
Packit 228f82
Packit 228f82
/*****************************************************************************/
Packit 228f82
/* instance and class init functions                                         */
Packit 228f82
/*****************************************************************************/
Packit 228f82
Packit 228f82
static void
Packit 228f82
class_init(LassoSamlStatementAbstractClass *klass)
Packit 228f82
{
Packit 228f82
	LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
Packit 228f82
Packit 228f82
	nclass->node_data = g_new0(LassoNodeClassData, 1);
Packit 228f82
	lasso_node_class_set_nodename(nclass, "StatementAbstract");
Packit 228f82
	lasso_node_class_set_ns(nclass, LASSO_SAML_ASSERTION_HREF, LASSO_SAML_ASSERTION_PREFIX);
Packit 228f82
}
Packit 228f82
Packit 228f82
GType
Packit 228f82
lasso_saml_statement_abstract_get_type()
Packit 228f82
{
Packit 228f82
	static GType this_type = 0;
Packit 228f82
Packit 228f82
	if (!this_type) {
Packit 228f82
		static const GTypeInfo this_info = {
Packit 228f82
			sizeof (LassoSamlStatementAbstractClass),
Packit 228f82
			NULL,
Packit 228f82
			NULL,
Packit 228f82
			(GClassInitFunc) class_init,
Packit 228f82
			NULL,
Packit 228f82
			NULL,
Packit 228f82
			sizeof(LassoSamlStatementAbstract),
Packit 228f82
			0,
Packit 228f82
			NULL,
Packit 228f82
			NULL,
Packit 228f82
		};
Packit 228f82
Packit 228f82
		this_type = g_type_register_static(LASSO_TYPE_NODE,
Packit 228f82
				"LassoSamlStatementAbstract", &this_info, 0);
Packit 228f82
	}
Packit 228f82
	return this_type;
Packit 228f82
}