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