1
/* $Id: soap-env_envelope.c,v 1.3 2004/08/13 15:16:13 fpeters Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Author: Valery Febvre <vfebvre@easter-eggs.com>
9
* Nicolas Clapies <nclapies@entrouvert.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/soap-env_envelope.h>
28
/*****************************************************************************/
30
/*****************************************************************************/
33
lasso_soap_env_envelope_set_body(LassoSoapEnvEnvelope *envelope,
34
LassoSoapEnvBody *body)
36
LassoNodeClass *class;
37
g_assert(LASSO_IS_SOAP_ENV_ENVELOPE(envelope));
38
g_assert(LASSO_IS_SOAP_ENV_BODY(body));
40
class = LASSO_NODE_GET_CLASS(envelope);
41
class->add_child(LASSO_NODE(envelope),
46
/*****************************************************************************/
47
/* instance and class init functions */
48
/*****************************************************************************/
51
lasso_soap_env_envelope_instance_init(LassoSoapEnvEnvelope *node)
53
LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node));
55
class->set_ns(LASSO_NODE(node), lassoSoapEnvHRef,
57
class->set_name(LASSO_NODE(node), "Envelope");
61
lasso_soap_env_envelope_class_init(LassoSoapEnvEnvelopeClass *klass)
65
GType lasso_soap_env_envelope_get_type() {
66
static GType this_type = 0;
69
static const GTypeInfo this_info = {
70
sizeof (LassoSoapEnvEnvelopeClass),
73
(GClassInitFunc) lasso_soap_env_envelope_class_init,
76
sizeof(LassoSoapEnvEnvelope),
78
(GInstanceInitFunc) lasso_soap_env_envelope_instance_init,
81
this_type = g_type_register_static(LASSO_TYPE_NODE ,
82
"LassoSoapEnvEnvelope",
88
LassoNode* lasso_soap_env_envelope_new() {
89
return LASSO_NODE(g_object_new(LASSO_TYPE_SOAP_ENV_ENVELOPE,