~ubuntu-branches/ubuntu/edgy/lasso/edgy

« back to all changes in this revision

Viewing changes to lasso/xml/saml_statement_abstract.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: 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 $
2
2
 *
3
3
 * Lasso - A free implementation of the Samlerty Alliance specifications.
4
4
 *
5
 
 * Copyright (C) 2004 Entr'ouvert
 
5
 * Copyright (C) 2004, 2005 Entr'ouvert
6
6
 * http://lasso.entrouvert.org
7
7
 * 
8
 
 * Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
 
 *          Valery Febvre <vfebvre@easter-eggs.com>
 
8
 * Authors: See AUTHORS file in top-level directory.
10
9
 *
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"/>
33
32
*/
34
33
 
 
34
 
 
35
/*****************************************************************************/
 
36
/* private methods                                                           */
 
37
/*****************************************************************************/
 
38
 
35
39
/*****************************************************************************/
36
40
/* instance and class init functions                                         */
37
41
/*****************************************************************************/
38
42
 
39
43
static void
40
 
lasso_saml_statement_abstract_instance_init(LassoSamlStatementAbstract *node)
 
44
instance_init(LassoSamlStatementAbstract *node)
41
45
{
42
 
  LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
43
 
 
44
 
  class->set_ns(LASSO_NODE(node), lassoSamlAssertionHRef,
45
 
                lassoSamlAssertionPrefix);
46
 
  class->set_name(LASSO_NODE(node), "StatementAbstract");
47
46
}
48
47
 
49
48
static void
50
 
lasso_saml_statement_abstract_class_init(LassoSamlStatementAbstractClass *klass)
51
 
{
52
 
}
53
 
 
54
 
GType lasso_saml_statement_abstract_get_type() {
55
 
  static GType this_type = 0;
56
 
 
57
 
  if (!this_type) {
58
 
    static const GTypeInfo this_info = {
59
 
      sizeof (LassoSamlStatementAbstractClass),
60
 
      NULL,
61
 
      NULL,
62
 
      (GClassInitFunc) lasso_saml_statement_abstract_class_init,
63
 
      NULL,
64
 
      NULL,
65
 
      sizeof(LassoSamlStatementAbstract),
66
 
      0,
67
 
      (GInstanceInitFunc) lasso_saml_statement_abstract_instance_init,
68
 
    };
69
 
    
70
 
    this_type = g_type_register_static(LASSO_TYPE_NODE,
71
 
                                       "LassoSamlStatementAbstract",
72
 
                                       &this_info, 0);
73
 
  }
74
 
  return this_type;
75
 
}
76
 
 
77
 
/**
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.
81
 
 *
82
 
 * Creates a new <saml:StatementAbstract> node object.
83
 
 * 
84
 
 * Return value: the new @LassoSamlStatementAbstract
85
 
 **/
86
 
LassoNode* lasso_saml_statement_abstract_new(const xmlChar *name)
87
 
{
88
 
  LassoNode *node;
89
 
 
90
 
  node = LASSO_NODE(g_object_new(LASSO_TYPE_SAML_STATEMENT_ABSTRACT, NULL));
91
 
 
92
 
  if (name && *name)
93
 
    LASSO_NODE_GET_CLASS(node)->set_name(node, name);
94
 
 
95
 
  return node;
 
49
class_init(LassoSamlStatementAbstractClass *klass)
 
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
 
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
                        (GInstanceInitFunc) instance_init,
 
74
                };
 
75
 
 
76
                this_type = g_type_register_static(LASSO_TYPE_NODE,
 
77
                                "LassoSamlStatementAbstract", &this_info, 0);
 
78
        }
 
79
        return this_type;
96
80
}