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