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