1
/* $Id: saml_statement_abstract.c,v 1.4 2004/09/01 09:59:53 fpeters Exp $
1
/* $Id: saml_statement_abstract.c,v 1.11 2005/01/22 15:57:55 eraviart Exp $
3
3
* Lasso - A free implementation of the Samlerty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
5
* Copyright (C) 2004, 2005 Entr'ouvert
6
6
* http://lasso.entrouvert.org
8
* Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
* Valery Febvre <vfebvre@easter-eggs.com>
8
* Authors: See AUTHORS file in top-level directory.
11
10
* This program is free software; you can redistribute it and/or modify
12
11
* it under the terms of the GNU General Public License as published by
32
31
<complexType name="StatementAbstractType" abstract="true"/>
35
/*****************************************************************************/
37
/*****************************************************************************/
35
39
/*****************************************************************************/
36
40
/* instance and class init functions */
37
41
/*****************************************************************************/
40
lasso_saml_statement_abstract_instance_init(LassoSamlStatementAbstract *node)
44
instance_init(LassoSamlStatementAbstract *node)
42
LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
44
class->set_ns(LASSO_NODE(node), lassoSamlAssertionHRef,
45
lassoSamlAssertionPrefix);
46
class->set_name(LASSO_NODE(node), "StatementAbstract");
50
lasso_saml_statement_abstract_class_init(LassoSamlStatementAbstractClass *klass)
54
GType lasso_saml_statement_abstract_get_type() {
55
static GType this_type = 0;
58
static const GTypeInfo this_info = {
59
sizeof (LassoSamlStatementAbstractClass),
62
(GClassInitFunc) lasso_saml_statement_abstract_class_init,
65
sizeof(LassoSamlStatementAbstract),
67
(GInstanceInitFunc) lasso_saml_statement_abstract_instance_init,
70
this_type = g_type_register_static(LASSO_TYPE_NODE,
71
"LassoSamlStatementAbstract",
78
* lasso_saml_statement_abstract_new:
79
* @name: the node's name. If @name is NULL or an empty string, default value
80
* "StatementAbstract" will be used.
82
* Creates a new <saml:StatementAbstract> node object.
84
* Return value: the new @LassoSamlStatementAbstract
86
LassoNode* lasso_saml_statement_abstract_new(const xmlChar *name)
90
node = LASSO_NODE(g_object_new(LASSO_TYPE_SAML_STATEMENT_ABSTRACT, NULL));
93
LASSO_NODE_GET_CLASS(node)->set_name(node, name);
49
class_init(LassoSamlStatementAbstractClass *klass)
51
LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
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);
59
lasso_saml_statement_abstract_get_type()
61
static GType this_type = 0;
64
static const GTypeInfo this_info = {
65
sizeof (LassoSamlStatementAbstractClass),
68
(GClassInitFunc) class_init,
71
sizeof(LassoSamlStatementAbstract),
73
(GInstanceInitFunc) instance_init,
76
this_type = g_type_register_static(LASSO_TYPE_NODE,
77
"LassoSamlStatementAbstract", &this_info, 0);