1 /*
2  * Portions of this file Copyright 1999-2005 University of Chicago
3  * Portions of this file Copyright 1999-2005 The University of Southern California.
4  *
5  * This file or a portion of this file is licensed under the
6  * terms of the Globus Toolkit Public License, found at
7  * http://www.globus.org/toolkit/download/license.html.
8  * If you redistribute this file, with or without
9  * modifications, you must include this notice in the file.
10  */
11
12
13 #include "xsd_boolean.h"
14 #include "globus_soap_message.h"
15 #include "globus_i_xsd.h"
16
17 GLOBUS_I_XSD_DEFINE_QNAME(xsd, boolean);
18 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_boolean);
19 283 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_boolean);
20 78 GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_boolean, boolean);
21 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_boolean);
22 81 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_boolean);
23 38 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_boolean);
24
25 globus_result_t
26 xsd_boolean_serialize_contents(
27     xsd_QName *                         element,
28     xsd_boolean *                       instance,
29     globus_soap_message_handle_t        message_handle,
30     globus_xsd_element_options_t        options)
31 {
32 1     globus_result_t                     result = GLOBUS_SUCCESS;
33 1     GlobusFuncName(xsd_boolean_serialize_contents);
34 1     GlobusSoapMessageDebugEnter();
35
36     /* serialize contents of type */
37 1     result = globus_soap_message_serialize_boolean(
38         message_handle, instance);
39
40 1     GlobusSoapMessageDebugExit();
41 1     return result;
42 }
43
44 globus_result_t
45 xsd_boolean_deserialize_contents(
46     xsd_QName *                         eqn,
47     xsd_boolean *                       instance,
48     globus_soap_message_handle_t        message_handle,
49     globus_xsd_element_options_t        options)
50 1 {
51 1     globus_result_t                     result = GLOBUS_SUCCESS;
52 1     GlobusFuncName(xsd_boolean_deserialize_contents);
53 1     GlobusSoapMessageDebugEnter();
54     
55 1     result = globus_soap_message_deserialize_boolean(
56         message_handle, instance);
57
58 1     GlobusSoapMessageDebugExit();
59 1     return result;