1
/* $Id: lib_old_provided_name_identifier.c,v 1.6 2004/09/01 09:59:53 fpeters Exp $
3
* Lasso - A free implementation of the Samlerty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
* Valery Febvre <vfebvre@easter-eggs.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#include <lasso/xml/lib_old_provided_name_identifier.h>
29
The Schema fragment (liberty-idff-protocols-schema-v1.2.xsd):
31
<xs:element name="OldProvidedNameIdentifier" type="saml:NameIdentifierType"/>
35
/*****************************************************************************/
36
/* instance and class init functions */
37
/*****************************************************************************/
40
lasso_lib_old_provided_name_identifier_instance_init(LassoLibOLDProvidedNameIdentifier *node)
42
LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
44
class->set_ns(LASSO_NODE(node), lassoLibHRef, lassoLibPrefix);
45
class->set_name(LASSO_NODE(node), "OldProvidedNameIdentifier");
49
lasso_lib_old_provided_name_identifier_class_init(LassoLibOLDProvidedNameIdentifierClass *klass)
53
GType lasso_lib_old_provided_name_identifier_get_type() {
54
static GType this_type = 0;
57
static const GTypeInfo this_info = {
58
sizeof (LassoLibOLDProvidedNameIdentifierClass),
61
(GClassInitFunc) lasso_lib_old_provided_name_identifier_class_init,
64
sizeof(LassoLibOLDProvidedNameIdentifierClass),
66
(GInstanceInitFunc) lasso_lib_old_provided_name_identifier_instance_init,
69
this_type = g_type_register_static(LASSO_TYPE_SAML_NAME_IDENTIFIER,
70
"LassoLibOLDProvidedNameIdentifier",
76
LassoNode* lasso_lib_old_provided_name_identifier_new(const xmlChar *content) {
79
g_assert(content != NULL);
81
node = LASSO_NODE(g_object_new(LASSO_TYPE_LIB_OLD_PROVIDED_NAME_IDENTIFIER,
84
xmlNodeSetContent(LASSO_NODE_GET_CLASS(node)->get_xmlNode(node),