1 /*
2  * Copyright 1999-2006 University of Chicago
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "globus_i_xsd.h"
18
19 GLOBUS_I_XSD_DEFINE_QNAME(xsd, unsignedShort);
20 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_unsignedShort);
21 88 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_unsignedShort);
22 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_unsignedShort);
23 11 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_unsignedShort);
24 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_unsignedShort);
25
26 globus_result_t
27 xsd_unsignedShort_serialize_contents(
28     const xsd_QName *                   element,
29     const xsd_unsignedShort *           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_unsignedShort_serialize_contents);
35 0     GlobusSoapMessageDebugEnter();
36
37     /* serialize contents of type */
38 0     result = globus_soap_message_serialize_unsignedShort(
39         message_handle, instance);
40
41 0     GlobusSoapMessageDebugExit();
42 0     return result;
43 }
44
45 globus_result_t
46 xsd_unsignedShort_deserialize_contents(
47     const xsd_QName *                   eqn,
48     xsd_unsignedShort *                 instance,
49     globus_soap_message_handle_t        message_handle,
50     globus_xsd_element_options_t        options)
51 11 {
52 11     globus_result_t                     result = GLOBUS_SUCCESS;
53 11     GlobusFuncName(xsd_unsignedShort_deserialize_contents);
54 11     GlobusSoapMessageDebugEnter();
55     
56 11     result = globus_soap_message_deserialize_unsignedShort(
57         message_handle, instance);
58
59 11     GlobusSoapMessageDebugExit();
60 11     return result;