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_decimal.h"
14 #include "globus_soap_message.h"
15
16 #include "globus_i_xsd.h"
17
18 GLOBUS_I_XSD_DEFINE_QNAME(xsd, decimal);
19 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_decimal);
20 0 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_decimal);
21
22 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_decimal);
23 0 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_decimal);
24 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_decimal);
25
26 globus_result_t
27 xsd_decimal_serialize_contents(
28     xsd_QName *                         element,
29     xsd_decimal *                       instance,
30     globus_soap_message_handle_t        message_handle,
31     globus_xsd_element_options_t        options)
32 {
33 0     globus_result_t                     result = GLOBUS_SUCCESS;
34 0     GlobusFuncName(xsd_decimal_serialize_contents);
35 0     GlobusSoapMessageDebugEnter();
36
37     /* serialize contents of type */
38 0     result = globus_soap_message_serialize_float(
39         message_handle, instance);
40
41 0     GlobusSoapMessageDebugExit();
42 0     return result;
43 }
44
45 globus_result_t
46 xsd_decimal_deserialize_contents(
47     xsd_QName *                         eqn,
48     xsd_decimal *                       instance,
49     globus_soap_message_handle_t        message_handle,
50     globus_xsd_element_options_t        options)
51 0 {
52 0     globus_result_t                     result = GLOBUS_SUCCESS;
53 0     GlobusFuncName(xsd_decimal_deserialize_contents);
54 0     GlobusSoapMessageDebugEnter();
55     
56 0     result = globus_soap_message_deserialize_float(
57         message_handle, instance);
58
59 0     GlobusSoapMessageDebugExit();
60 0     return result;