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
14 GLOBUS_I_XSD_DEFINE_QNAME(xsd, unsignedShort);
15 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_unsignedShort);
16 0 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_unsignedShort);
17 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_unsignedShort);
18 0 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_unsignedShort);
19 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_unsignedShort);
20
21 globus_result_t
22 xsd_unsignedShort_serialize_contents(
23     xsd_QName *                         element,
24     xsd_unsignedShort *                 instance,
25     globus_soap_message_handle_t        message_handle,
26     globus_xsd_element_options_t        options)
27 {
28 0     globus_result_t                     result = GLOBUS_SUCCESS;
29 0     GlobusFuncName(xsd_unsignedShort_serialize_contents);
30 0     GlobusSoapMessageDebugEnter();
31
32     /* serialize contents of type */
33 0     result = globus_soap_message_serialize_unsignedShort(
34         message_handle, instance);
35
36 0     GlobusSoapMessageDebugExit();
37 0     return result;
38 }
39
40 globus_result_t
41 xsd_unsignedShort_deserialize_contents(
42     xsd_QName *                         eqn,
43     xsd_unsignedShort *                 instance,
44     globus_soap_message_handle_t        message_handle,
45     globus_xsd_element_options_t        options)
46 0 {
47 0     globus_result_t                     result = GLOBUS_SUCCESS;
48 0     GlobusFuncName(xsd_unsignedShort_deserialize_contents);
49 0     GlobusSoapMessageDebugEnter();
50     
51 0     result = globus_soap_message_deserialize_unsignedShort(
52         message_handle, instance);
53
54 0     GlobusSoapMessageDebugExit();
55 0     return result;