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 #include "globus_i_xsd.h"
13 #include "globus_i_xsd_type_info.h"
14 #include "globus_soap_message.h"
15
16 GLOBUS_I_XSD_DEFINE_QNAME(xsd, int);
17 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_int);
18 765 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_int);
19 0 GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_int, int);
20 13 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_int);
21 120 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_int);
22 90 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_int);
23
24 globus_result_t
25 xsd_int_serialize_contents(
26     xsd_QName *                         element,
27     xsd_int *                           instance,
28     globus_soap_message_handle_t        soap_message_handle,
29     globus_xsd_element_options_t        options)
30 {
31 51     globus_result_t                     result = GLOBUS_SUCCESS;
32 51     GlobusFuncName(xsd_int_serialize_contents);
33 51     GlobusSoapMessageDebugEnter();
34
35     /* serialize contents of type */
36 51     result = globus_soap_message_serialize_int(
37         soap_message_handle, instance);
38
39 51     GlobusSoapMessageDebugExit();
40 51     return result;
41 }
42
43 globus_result_t
44 xsd_int_deserialize_contents(
45     xsd_QName *                         eqn,
46     xsd_int *                           instance,
47     globus_soap_message_handle_t        soap_message_handle,
48     globus_xsd_element_options_t        options)
49 67 {
50 67     globus_result_t                     result = GLOBUS_SUCCESS;
51 67     GlobusFuncName(xsd_int_deserialize_contents);
52 67     GlobusSoapMessageDebugEnter();
53     
54 67     result = globus_soap_message_deserialize_int(
55         soap_message_handle, instance);
56
57 67     GlobusSoapMessageDebugExit();
58 67     return result;