~ubuntu-branches/ubuntu/breezy/lasso/breezy

« back to all changes in this revision

Viewing changes to lasso/xml/lib_old_provided_name_identifier.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-16 02:16:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050916021649-lr5tuka6pfmmks44
Tags: 0.6.2-3ubuntu1
* debian/control: removed hardcoded php dependency, added php:Depends
  substvar
* debian/rules: added phpapiver, added substitution of php:Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: lib_old_provided_name_identifier.c,v 1.6 2004/09/01 09:59:53 fpeters Exp $
2
 
 *
3
 
 * Lasso - A free implementation of the Samlerty Alliance specifications.
4
 
 *
5
 
 * Copyright (C) 2004 Entr'ouvert
6
 
 * http://lasso.entrouvert.org
7
 
 * 
8
 
 * Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
 
 *          Valery Febvre <vfebvre@easter-eggs.com>
10
 
 *
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.
15
 
 * 
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.
20
 
 * 
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
24
 
 */
25
 
 
26
 
#include <lasso/xml/lib_old_provided_name_identifier.h>
27
 
 
28
 
/*
29
 
The Schema fragment (liberty-idff-protocols-schema-v1.2.xsd):
30
 
 
31
 
<xs:element name="OldProvidedNameIdentifier" type="saml:NameIdentifierType"/>
32
 
 
33
 
*/
34
 
 
35
 
/*****************************************************************************/
36
 
/* instance and class init functions                                         */
37
 
/*****************************************************************************/
38
 
 
39
 
static void
40
 
lasso_lib_old_provided_name_identifier_instance_init(LassoLibOLDProvidedNameIdentifier *node)
41
 
{
42
 
  LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
43
 
 
44
 
  class->set_ns(LASSO_NODE(node), lassoLibHRef, lassoLibPrefix);
45
 
  class->set_name(LASSO_NODE(node), "OldProvidedNameIdentifier");
46
 
}
47
 
 
48
 
static void
49
 
lasso_lib_old_provided_name_identifier_class_init(LassoLibOLDProvidedNameIdentifierClass *klass)
50
 
{
51
 
}
52
 
 
53
 
GType lasso_lib_old_provided_name_identifier_get_type() {
54
 
  static GType this_type = 0;
55
 
 
56
 
  if (!this_type) {
57
 
    static const GTypeInfo this_info = {
58
 
      sizeof (LassoLibOLDProvidedNameIdentifierClass),
59
 
      NULL,
60
 
      NULL,
61
 
      (GClassInitFunc) lasso_lib_old_provided_name_identifier_class_init,
62
 
      NULL,
63
 
      NULL,
64
 
      sizeof(LassoLibOLDProvidedNameIdentifierClass),
65
 
      0,
66
 
      (GInstanceInitFunc) lasso_lib_old_provided_name_identifier_instance_init,
67
 
    };
68
 
    
69
 
    this_type = g_type_register_static(LASSO_TYPE_SAML_NAME_IDENTIFIER,
70
 
                                       "LassoLibOLDProvidedNameIdentifier",
71
 
                                       &this_info, 0);
72
 
  }
73
 
  return this_type;
74
 
}
75
 
 
76
 
LassoNode* lasso_lib_old_provided_name_identifier_new(const xmlChar *content) {
77
 
  LassoNode *node;
78
 
 
79
 
  g_assert(content != NULL);
80
 
 
81
 
  node = LASSO_NODE(g_object_new(LASSO_TYPE_LIB_OLD_PROVIDED_NAME_IDENTIFIER,
82
 
                                 NULL));
83
 
 
84
 
  xmlNodeSetContent(LASSO_NODE_GET_CLASS(node)->get_xmlNode(node),
85
 
                    content);
86
 
 
87
 
  return node;
88
 
}