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, short);
20 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_short);
21 88 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_short);
22
23 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_short);
24 11 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_short);
25 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_short);
26     
27 globus_result_t
28 xsd_short_serialize_contents(
29     const xsd_QName *                   element,
30     const xsd_short *                   instance,
31     globus_soap_message_handle_t        message_handle,
32     globus_xsd_element_options_t        options)
33 {
34 0     globus_result_t                     result = GLOBUS_SUCCESS;
35 0     GlobusFuncName(xsd_short_serialize_contents);
36 0     GlobusSoapMessageDebugEnter();
37
38     /* serialize contents of type */
39 0     result = globus_soap_message_serialize_short(
40         message_handle, instance);
41
42 0     GlobusSoapMessageDebugExit();
43 0     return result;
44 }
45
46 globus_result_t
47 xsd_short_deserialize_contents(
48     const xsd_QName *                   eqn,
49     xsd_short *                         instance,
50     globus_soap_message_handle_t        message_handle,
51     globus_xsd_element_options_t        options)
52 11 {
53 11     globus_result_t                     result = GLOBUS_SUCCESS;
54 11     GlobusFuncName(xsd_short_deserialize_contents);
55 11     GlobusSoapMessageDebugEnter();
56     
57 11     result = globus_soap_message_deserialize_short(
58         message_handle, instance);
59
60 11     GlobusSoapMessageDebugExit();
61 11     return result;