1
/* $Id: ps_resolve_input.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004-2007 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: See AUTHORS file in top-level directory.
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#include "ps_resolve_input.h"
28
* Schema fragment (liberty-idwsf-people-service-v1.0.xsd):
30
* <xs:complexType name="ResolveInputType">
32
* <xs:extension base="ims:MappingInputType">
34
* <xs:element ref="TargetObjectID" minOccurs="0"/>
37
* </xs:complexContent>
41
/*****************************************************************************/
43
/*****************************************************************************/
46
static struct XmlSnippet schema_snippets[] = {
47
{ "TargetObjectID", SNIPPET_NODE,
48
G_STRUCT_OFFSET(LassoIdWsf2PsResolveInput, TargetObjectID) },
52
static LassoNodeClass *parent_class = NULL;
55
/*****************************************************************************/
56
/* instance and class init functions */
57
/*****************************************************************************/
60
instance_init(LassoIdWsf2PsResolveInput *node)
62
node->TargetObjectID = NULL;
66
class_init(LassoIdWsf2PsResolveInputClass *klass)
68
LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
70
parent_class = g_type_class_peek_parent(klass);
71
nclass->node_data = g_new0(LassoNodeClassData, 1);
72
lasso_node_class_set_nodename(nclass, "ResolveInput");
73
lasso_node_class_set_ns(nclass, LASSO_IDWSF2_PS_HREF, LASSO_IDWSF2_PS_PREFIX);
74
lasso_node_class_add_snippets(nclass, schema_snippets);
78
lasso_idwsf2_ps_resolve_input_get_type()
80
static GType this_type = 0;
83
static const GTypeInfo this_info = {
84
sizeof (LassoIdWsf2PsResolveInputClass),
87
(GClassInitFunc) class_init,
90
sizeof(LassoIdWsf2PsResolveInput),
92
(GInstanceInitFunc) instance_init,
95
this_type = g_type_register_static(LASSO_TYPE_IDWSF2_IMS_MAPPING_INPUT,
96
"LassoIdWsf2PsResolveInput", &this_info, 0);
102
* lasso_idwsf2_ps_resolve_input_new:
104
* Creates a new #LassoIdWsf2PsResolveInput object.
106
* Return value: a newly created #LassoIdWsf2PsResolveInput object
108
LassoIdWsf2PsResolveInput*
109
lasso_idwsf2_ps_resolve_input_new()
111
return g_object_new(LASSO_TYPE_IDWSF2_PS_RESOLVE_INPUT, NULL);