1
/* $Id: soap-env_body.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_body.h>
28
/*****************************************************************************/
30
/*****************************************************************************/
33
lasso_soap_env_body_add_child(LassoSoapEnvBody *body, LassoNode *node)
35
LassoNodeClass *class;
36
g_assert(LASSO_IS_SOAP_ENV_BODY(body));
37
g_assert(LASSO_IS_NODE(node));
39
class = LASSO_NODE_GET_CLASS(body);
40
class->add_child(LASSO_NODE(body),
46
/*****************************************************************************/
47
/* instance and class init functions */
48
/*****************************************************************************/
51
lasso_soap_env_body_instance_init(LassoSoapEnvBody *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), "Body");
61
lasso_soap_env_body_class_init(LassoSoapEnvBodyClass *klass)
65
GType lasso_soap_env_body_get_type() {
66
static GType this_type = 0;
69
static const GTypeInfo this_info = {
70
sizeof (LassoSoapEnvBodyClass),
73
(GClassInitFunc) lasso_soap_env_body_class_init,
76
sizeof(LassoSoapEnvBody),
78
(GInstanceInitFunc) lasso_soap_env_body_instance_init,
81
this_type = g_type_register_static(LASSO_TYPE_NODE ,
88
LassoNode* lasso_soap_env_body_new() {
89
return LASSO_NODE(g_object_new(LASSO_TYPE_SOAP_ENV_BODY,