/*
 * Portions of this file Copyright 1999-2005 University of Chicago
 * Portions of this file Copyright 1999-2005 The University of Southern California.
 *
 * This file or a portion of this file is licensed under the
 * terms of the Globus Toolkit Public License, found at
 * http://www.globus.org/toolkit/download/license.html.
 * If you redistribute this file, with or without
 * modifications, you must include this notice in the file.
 */


/*
 * This file is automatically generated by the Globus WSDL-to-C Converter
 */

#ifndef _WSC_FAULTCODES_H_
#define _WSC_FAULTCODES_H_

#include "globus_common.h"

/**
 * @defgroup wsc_FaultCodes Simple Type: wsc_FaultCodes
 * @ingroup types
 */

#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
EXTERN_C_BEGIN
#endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */


#include "xsd_QName.h"

/**
 * @ingroup wsc_FaultCodes
 */
typedef xsd_QName wsc_FaultCodes;

extern xsd_QName wsc_FaultCodes_undefined;
extern xsd_QName wsc_FaultCodes_undefined;
extern xsd_QName wsc_FaultCodes_undefined;

/**
 * Optional wsc_FaultCodes element
 * @ingroup wsc_FaultCodes
 */
typedef wsc_FaultCodes * wsc_FaultCodes_o;

/**
 * Array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 *
 * This structure type is used represent an array of
 * wsc_FaultCodes elements.
 *
 * Arrays are allocated by wsc_FaultCodes_array_init() and freed by calling
 * wsc_FaultCodes_array_destroy(). Elements may be added to an array by calling
 * wsc_FaultCodes_array_push().
 */
typedef struct wsc_FaultCodes_array_s
{
    /** Dynamic array of elements */
    wsc_FaultCodes * elements;
    /** Number of elements in this array */
    int                                 length;
} wsc_FaultCodes_array;

/**
 * Namespace of the wsc_FaultCodes complex type
 * @ingroup wsc_FaultCodes
 */
#define WSC_FAULTCODES_NS "http://schemas.xmlsoap.org/ws/2004/04/sc"
/**
 * Local part of the QName of the wsc_FaultCodes complex type
 * @ingroup wsc_FaultCodes
 */
#define WSC_FAULTCODES_LOCAL "FaultCodes"

/**
 * QName of the wsc_FaultCodes complex type
 * @ingroup wsc_FaultCodes
 */
extern xsd_QName wsc_FaultCodes_qname;
/**
 * Type information for serializing and deserializing wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 */
extern struct globus_xsd_type_info_s wsc_FaultCodes_info;
/**
 * Type information for serializing and deserializing arrays of wsc_FaultCodes
 * elements
 * @ingroup wsc_FaultCodes
 */
extern struct globus_xsd_type_info_s wsc_FaultCodes_array_info;
/**
 * Type information for serializing and deserializing the contents of
 * wsc_FaultCodes without surrounding elements
 * @ingroup wsc_FaultCodes
 */
extern struct globus_xsd_type_info_s wsc_FaultCodes_contents_info;

/**
 * Initialize a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Allocates a new wsc_FaultCodes and initializes its contents. When the
 * structure is no longer needed, it should be freed by calling 
 * wsc_FaultCodes_destroy(). 
 *
 * @param inst
 *     Pointer to set to a newly allocated instance.
 */
globus_result_t
wsc_FaultCodes_init(
    wsc_FaultCodes ** inst);

/**
 * Destroy a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Frees a wsc_FaultCodes. All subelements and attributes will be destroyed
 * (and freed if they are optional).
 *
 * @param inst
 *     Pointer to the instance to destroy.
 */
void
wsc_FaultCodes_destroy(
    wsc_FaultCodes * inst);

/**
 * Copy a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Perform a deep copy of a wsc_FaultCodes.
 * The @a dest structure will be allocated, and then a copy of the contents
 * of @a src and its subelements and attributes will be made to @a dest.
 * 
 * @param dest
 *     The wsc_FaultCodes structure to be initialized with a copy of the
 *     contents of the @a src structure.
 * @param src
 *     Source wsc_FaultCodes to be copied.
 */
globus_result_t
wsc_FaultCodes_copy(
    wsc_FaultCodes ** dest,
    const wsc_FaultCodes * src);

/**
 * Initialize the contents of a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Initialize the contents of a wsc_FaultCodes. This should be used
 * when the structure is allocated on the stack or by a some allocator besides
 * wsc_FaultCodes_init(). The contents may be freed
 * by calling wsc_FaultCodes_destroy_contents().
 *
 * @param instance
 *     Pointer to an allocated but uninitialized wsc_FaultCodes.
 */
globus_result_t
wsc_FaultCodes_init_contents(
    wsc_FaultCodes * instance);

/**
 * Destroy the contents of a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Destroy the subelements and attributes of the given wsc_FaultCodes. 
 *
 * @param inst
 *     Pointer to a wsc_FaultCodes instance to destroy.
 */
void
wsc_FaultCodes_destroy_contents(
    wsc_FaultCodes * inst);

/**
 * Copy the contents of a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 *
 * Perform a deep copy of the contents of a wsc_FaultCodes.
 * The @a dest strcuture must be allocated before making this call.
 * A copy of the subelements and attributes of @ src will be made to
 * @a dest.
 * 
 * @param dest
 *     Structure to be initialized with copies of the contents of @a src.
 * @param src
 *     Source wsc_FaultCodes to be copied.
 */
globus_result_t
wsc_FaultCodes_copy_contents(
    wsc_FaultCodes * dest,
    const wsc_FaultCodes * src);

/**
 * Initialize an array of wsc_FaultCodes elements.
 * @ingroup wsc_FaultCodes
 *
 * Allocates a new array of 0 elements. When this array is no longer used,
 * it should be freed by calling 
 * wsc_FaultCodes_array_destroy(). 
 *
 * @param inst
 *     Pointer to set to a newly allocated array instance.
 */
globus_result_t
wsc_FaultCodes_array_init(
    wsc_FaultCodes_array ** inst);

/**
 * Destroy an array of wsc_FaultCodes elements.
 * @ingroup wsc_FaultCodes
 *
 * Frees an array of wsc_FaultCodes elements. The contents of each element
 * element in the array be destroyed by calling
 * wsc_FaultCodes_destroy_contents().
 *
 * @param inst
 *     Pointer to array instance to destroy.
 */
void
wsc_FaultCodes_array_destroy(
    wsc_FaultCodes_array * inst);

/**
 * Copy an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 *
 * Perform a deep copy of an array of wsc_FaultCodes elements.
 * The @a dest array will be allocated, and then a copy of the contents
 * of each element in @a src will be made to @a dest.
 * 
 * @param dest
 *     Array to be initialized with copies of the elements in @a src.
 * @param src
 *     Source array to be copied.
 */
globus_result_t
wsc_FaultCodes_array_copy(
    wsc_FaultCodes_array ** dest,
    const wsc_FaultCodes_array * src);

/**
 * Initialize the contents of an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 *
 * Initialize the contents of an array of wsc_FaultCodes elements. Used
 * when the array is allocated on the stack or by a some allocator besides
 * wsc_FaultCodes_array_init(). The contents of the array may be freed
 * by calling wsc_FaultCodes_array_destroy_contents().
 *
 * @param inst
 *     Pointer to an allocated but uninitialized array.
 */
globus_result_t
wsc_FaultCodes_array_init_contents(
    wsc_FaultCodes_array * inst);

/**
 * Destroy the contents of an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 *
 * Destroy the elements in an array of wsc_FaultCodes elements. The contents of
 * each element in the array be destroyed by calling
 * wsc_FaultCodes_destroy_contents() and the array will be reset to be empty.
 *
 * @param inst
 *     Pointer to array instance to destroy.
 */
void
wsc_FaultCodes_array_destroy_contents(
    wsc_FaultCodes_array * inst);

/**
 * Copy the contents of an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 *
 * Perform a deep copy of an array of wsc_FaultCodes elements.
 * The @a dest array must be allocated before making this call.
 * A copy of the contents of each element in @a src will be made to @a dest.
 * 
 * @param dest
 *     Array to be initialized with copies of the elements in @a src.
 * @param src
 *     Source array to be copied.
 */
globus_result_t
wsc_FaultCodes_array_copy_contents(
    wsc_FaultCodes_array * dest,
    const wsc_FaultCodes_array * src);

/**
 * Append a new wsc_FaultCodes to an array
 * @ingroup wsc_FaultCodes
 *
 * Allocate and initialize a new wsc_FaultCodes structure, adding it
 * to the end of the given @a array.
 * 
 * @param array
 *     Array to be appended to.
 *
 * @return This function returns the newly allocated element.
 */
wsc_FaultCodes *
wsc_FaultCodes_array_push(
    wsc_FaultCodes_array * array);

/**
 * Serialize a wsc_FaultCodes
 * @ingroup wsc_FaultCodes_array
 * Serialize a wsc_FaultCodes structure.
 *
 * @param element_name
 *     The name of the element which will contain the wsc_FaultCodes.
 * @param val
 *     The wsc_FaultCodes to serialize.
 * @param message_handle
 *     The handle to serialize the element on.
 * @param options
 *     Serialization options.
 */
globus_result_t
wsc_FaultCodes_serialize(
    xsd_QName *                         element_name,
    wsc_FaultCodes * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Serialize the contents of a wsc_FaultCodes
 * @ingroup wsc_FaultCodes_array
 * Serialize a wsc_FaultCodes structure without an enclosing element.
 *
 * @param element_name
 *     Ignored parameter.
 * @param val
 *     The wsc_FaultCodes to serialize.
 * @param message_handle
 *     The handle to serialize the contents on.
 * @param options
 *     Serialization options.
 */
globus_result_t
wsc_FaultCodes_serialize_contents(
    xsd_QName *                         element_name,
    wsc_FaultCodes * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Deserialize a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 * Deserialize an element containing a wsc_FaultCodes element.
 *
 * @param element_name
 *     The name of the element which should enclose the wsc_FaultCodes.
 * @param val
 *     Pointer to the wsc_FaultCodes which will be initialized with the
 *     value of the element.
 * @param message_handle
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_deserialize(
    xsd_QName *                         element_name,
    wsc_FaultCodes * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Deserialize a wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 * Deserialize a wsc_FaultCodes whose enclosing element has already been
 * deserialized.
 *
 * @param element_name
 *     Ignored.
 * @param val
 *     Pointer to the wsc_FaultCodes which will be initialized with the
 *     value of the current element.
 * @param message_handle
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_deserialize_contents(
    xsd_QName *                         element_name,
    wsc_FaultCodes * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Deserialize an optional wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 * Deserialize the next element if it contains a wsc_FaultCodes.
 *
 * @param element_name
 *     The name of the element which should enclose the wsc_FaultCodes.
 * @param instance
 *     Pointer to the <code>wsc_FaultCodes *</code> which will be allocated
 *     and initialized with the value of the element if it is present.
 * @param message_handle
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_deserialize_pointer(
    xsd_QName *                         element_name,
    wsc_FaultCodes ** instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Serialize an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 * Serialize an element containing an array of wsc_FaultCodes elements.
 *
 * @param element
 *     The name of the element which will contain the array.
 * @param array_instance
 *     The array to serialize
 * @param message_handle
 *     The handle to serialize the element on.
 * @param options
 *     Serialization options.
 */
globus_result_t
wsc_FaultCodes_array_serialize(
    xsd_QName *                         element,
    wsc_FaultCodes_array * array_instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

/**
 * Deserialize an array of wsc_FaultCodes elements
 * @ingroup wsc_FaultCodes
 * Deserialize an element containing an array of wsc_FaultCodes elements.
 *
 * @param element
 *     The name of the element which should enclose the array.
 * @param array_instance
 *     The array to deserialize into
 * @param message_handle
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_array_deserialize(
    xsd_QName *                         element,
    wsc_FaultCodes_array * array_instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);



/**
 * Serialize an attribute of type wsc_FaultCodes
 * @ingroup wsc_FaultCodes_array
 * Serialize a wsc_FaultCodes as an attribute of the current element.
 *
 * @param attr_qname
 *     The name of the attribute whose value is a wsc_FaultCodes.
 * @param val
 *     The wsc_FaultCodes to serialize.
 * @param message
 *     The handle to serialize the attribute on.
 * @param options
 *     Serialization options.
 */
globus_result_t
wsc_FaultCodes_serialize_attribute(
    xsd_QName *                         attr_qname,
    wsc_FaultCodes * val,
    globus_soap_message_handle_t        handle,
    globus_xsd_element_options_t        options);

/**
 * Deserialize an attribute of type wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 * Deserialize a wsc_FaultCodes as an attribute of the current element.
 *
 * @param attr_qname
 *     The name of the attribute whose value is a wsc_FaultCodes.
 * @param instance
 *     Pointer to the wsc_FaultCodes which will be initialized with the
 *     value of the attribute.
 * @param message
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_deserialize_attribute(
    xsd_QName *                         attr_qname,
    wsc_FaultCodes * instance,
    globus_soap_message_handle_t        message,
    globus_xsd_element_options_t        options);

/**
 * Deserialize an optional attribute of type wsc_FaultCodes
 * @ingroup wsc_FaultCodes
 * Try to deserialize a wsc_FaultCodes as an attribute of the current element
 * if it is present. The attribute's name is defined by @ attr_qname.
 *
 * @param attr_qname
 *     The name of the attribute whose value is a wsc_FaultCodes.
 * @param instance
 *     Pointer to the wsc_FaultCodes which will be allocated and initialized
 *     with the value of the attribute if it is present.
 * @param message
 *     The handle to deserialize the element from.
 * @param options
 *     Deserialization options.
 */
globus_result_t
wsc_FaultCodes_deserialize_attribute_pointer(
    xsd_QName *                         attr_qname,
    wsc_FaultCodes ** instance,
    globus_soap_message_handle_t        message,
    globus_xsd_element_options_t        options);


#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
globus_result_t
wsc_FaultCodes_init_wrapper(
    void **                             object);
    
void
wsc_FaultCodes_destroy_wrapper(
    void *                              object);
    
globus_result_t
wsc_FaultCodes_copy_wrapper(
    void **                             dest_obj,
    void *                              src_obj);
    
globus_result_t
wsc_FaultCodes_init_contents_wrapper(
    void  *                             object);
    
void
wsc_FaultCodes_destroy_contents_wrapper(
    void *                              object);
    
globus_result_t
wsc_FaultCodes_copy_contents_wrapper(
    void *                              dest_obj,
    void *                              src_obj);
    
globus_result_t
wsc_FaultCodes_serialize_wrapper(
    xsd_QName *                         element_qname,
    void *                              instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_FaultCodes_serialize_contents_wrapper(
    xsd_QName *                         element_qname,
    void *                              instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_FaultCodes_deserialize_contents_wrapper(
    xsd_QName *                         element_qname,
    void **                             instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_FaultCodes_array_serialize_wrapper(
    xsd_QName *                         element,
    void *                              instance,
    globus_soap_message_handle_t        message,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_FaultCodes_array_deserialize_wrapper(
    xsd_QName *                         element_qname,
    void **                             inst,
    globus_soap_message_handle_t        message,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_FaultCodes_array_init_wrapper(
    void **                             arr);
    
void
wsc_FaultCodes_array_destroy_wrapper(
    void *                              arr);
    
globus_result_t
wsc_FaultCodes_array_copy_wrapper(
    void **                             dest_arr,
    void *                              src_arr);
globus_result_t
wsc_FaultCodes_array_init_contents_wrapper(
    void *                              arr);
    
void
wsc_FaultCodes_array_destroy_contents_wrapper(
    void *                              arr);
    
globus_result_t
wsc_FaultCodes_array_copy_contents_wrapper(
    void *                              dest_arr,
    void *                              src_arr);
    
globus_result_t
wsc_FaultCodes_deserialize_pointer_wrapper(
    xsd_QName *                         element_qname,
    void **                             ip,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

void *
wsc_FaultCodes_array_push_wrapper(
    void * array);
#endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */

#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
EXTERN_C_END
#endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */

#endif
