/*
 * 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 WSDLtoC converter
 */

#ifndef _WSC_DERIVEDKEYTOKENTYPE_CHOICE_H_
#define _WSC_DERIVEDKEYTOKENTYPE_CHOICE_H_

#include "globus_common.h"

#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
EXTERN_C_BEGIN
#endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */

enum wsc_DerivedKeyTokenType_e
{
    wsc_DerivedKeyTokenType_undefined,
    wsc_DerivedKeyTokenType_Generation,
    wsc_DerivedKeyTokenType_Offset

};

/**
 * @defgroup wsc_DerivedKeyTokenType_choice Complex choice type: wsc_DerivedKeyTokenType
 * @ingroup wsc_DerivedKeyTokenType
 */

/**
 * Enumeration of the types of values which the wsc_DerivedKeyTokenType_choice
 * structure may take on.
 * @ingroup wsc_DerivedKeyTokenType_choice
 */
typedef enum wsc_DerivedKeyTokenType_e wsc_DerivedKeyTokenType_enum;
/**
 * Union of the values which the wsc_DerivedKeyTokenType_choice structure
 * contains
 * @ingroup wsc_DerivedKeyTokenType_choice
 */
typedef union wsc_DerivedKeyTokenType_u wsc_DerivedKeyTokenType_union;
/**
 * The wsc_DerivedKeyTokenType complex type, which represents the various values
 * possible by the choice used by the
 * {http://schemas.xmlsoap.org/ws/2004/04/sc}choice 8 element.
 * @ingroup wsc_DerivedKeyTokenType_choice
 */
typedef struct wsc_DerivedKeyTokenType_choice_s wsc_DerivedKeyTokenType_choice;
/**
 * The wsc_DerivedKeyTokenType_o complex type, which represents an optional instance
 * of the choice used by the
 * {http://schemas.xmlsoap.org/ws/2004/04/sc}choice 8 element.
 * @ingroup wsc_DerivedKeyTokenType
 */
typedef wsc_DerivedKeyTokenType_choice * wsc_DerivedKeyTokenType_choice_o;

typedef struct wsc_DerivedKeyTokenType_choice_array_s
{
    wsc_DerivedKeyTokenType_choice * elements;
    int                                 length;
} wsc_DerivedKeyTokenType_choice_array;

#define WSC_DERIVEDKEYTOKENTYPE_NS "http://schemas.xmlsoap.org/ws/2004/04/sc"
#define WSC_DERIVEDKEYTOKENTYPE_LOCAL "DerivedKeyTokenType"

extern xsd_QName wsc_DerivedKeyTokenType_choice_qname;
extern struct globus_xsd_type_info_s wsc_DerivedKeyTokenType_choice_info;
extern struct globus_xsd_type_info_s wsc_DerivedKeyTokenType_choice_contents_info;
extern struct globus_xsd_type_info_s wsc_DerivedKeyTokenType_choice_array_info;


#include "xsd_unsignedLong.h"
#include "xsd_unsignedLong.h"

union wsc_DerivedKeyTokenType_u
{
    /** xsd_unsignedLong subelement */
    xsd_unsignedLong Generation;
    /** xsd_unsignedLong subelement */
    xsd_unsignedLong Offset;

};

struct wsc_DerivedKeyTokenType_choice_s
{
    wsc_DerivedKeyTokenType_enum type;
    wsc_DerivedKeyTokenType_union value;
};

globus_result_t
wsc_DerivedKeyTokenType_choice_init(
    wsc_DerivedKeyTokenType_choice ** inst);

void
wsc_DerivedKeyTokenType_choice_destroy(
    wsc_DerivedKeyTokenType_choice * inst);

globus_result_t
wsc_DerivedKeyTokenType_choice_copy(
    wsc_DerivedKeyTokenType_choice ** dest,
    const wsc_DerivedKeyTokenType_choice * src);

globus_result_t
wsc_DerivedKeyTokenType_choice_init_contents(
    wsc_DerivedKeyTokenType_choice * instance);

void
wsc_DerivedKeyTokenType_choice_destroy_contents(
    wsc_DerivedKeyTokenType_choice * inst);

globus_result_t
wsc_DerivedKeyTokenType_choice_copy_contents(
    wsc_DerivedKeyTokenType_choice * dest,
    const wsc_DerivedKeyTokenType_choice * src);
    
globus_result_t
wsc_DerivedKeyTokenType_choice_array_init(
    wsc_DerivedKeyTokenType_choice_array ** inst);

void
wsc_DerivedKeyTokenType_choice_array_destroy(
    wsc_DerivedKeyTokenType_choice_array * inst);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_copy(
    wsc_DerivedKeyTokenType_choice_array ** dest,
    const wsc_DerivedKeyTokenType_choice_array * src);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_init_contents(
    wsc_DerivedKeyTokenType_choice_array * inst);

void
wsc_DerivedKeyTokenType_choice_array_destroy_contents(
    wsc_DerivedKeyTokenType_choice_array * inst);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_copy_contents(
    wsc_DerivedKeyTokenType_choice_array * dest,
    const wsc_DerivedKeyTokenType_choice_array * src);

wsc_DerivedKeyTokenType_choice *
wsc_DerivedKeyTokenType_choice_array_push(
    wsc_DerivedKeyTokenType_choice_array * array);

globus_result_t
wsc_DerivedKeyTokenType_choice_serialize(
    xsd_QName *                         element_name,
    wsc_DerivedKeyTokenType_choice * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_serialize_contents(
    xsd_QName *                         element_name,
    wsc_DerivedKeyTokenType_choice * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_deserialize(
    xsd_QName *                         element_name,
    wsc_DerivedKeyTokenType_choice * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_deserialize_contents(
    xsd_QName *                         element_name,
    wsc_DerivedKeyTokenType_choice * val,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_deserialize_pointer(
    xsd_QName *                         element_name,
    wsc_DerivedKeyTokenType_choice ** instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_serialize(
    xsd_QName *                         element,
    wsc_DerivedKeyTokenType_choice_array * array_instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_deserialize(
    xsd_QName *                         element,
    wsc_DerivedKeyTokenType_choice_array * array_instance,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

globus_result_t
wsc_DerivedKeyTokenType_choice_init_wrapper(
    void **                             object);
    
void
wsc_DerivedKeyTokenType_choice_destroy_wrapper(
    void *                              object);
    
globus_result_t
wsc_DerivedKeyTokenType_choice_copy_wrapper(
    void **                             dest_obj,
    void *                              src_obj);

globus_result_t
wsc_DerivedKeyTokenType_choice_init_contents_wrapper(
    void *                              object);
    
void
wsc_DerivedKeyTokenType_choice_destroy_contents_wrapper(
    void *                              object);
    
globus_result_t
wsc_DerivedKeyTokenType_choice_copy_contents_wrapper(
    void *                              dest_obj,
    void *                              src_obj);

globus_result_t
wsc_DerivedKeyTokenType_choice_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_DerivedKeyTokenType_choice_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_DerivedKeyTokenType_choice_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_DerivedKeyTokenType_choice_array_serialize_wrapper(
    xsd_QName *                         element,
    void *                              instance,
    globus_soap_message_handle_t        message,
    globus_xsd_element_options_t        options);
    
globus_result_t
wsc_DerivedKeyTokenType_choice_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_DerivedKeyTokenType_choice_array_init_wrapper(
    void **                             arr);
    
void
wsc_DerivedKeyTokenType_choice_array_destroy_wrapper(
    void *                              arr);
    
globus_result_t
wsc_DerivedKeyTokenType_choice_array_copy_wrapper(
    void **                             dest_arr,
    void *                              src_arr);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_init_contents_wrapper(
    void *                              arr);

void
wsc_DerivedKeyTokenType_choice_array_destroy_contents_wrapper(
    void *                              arr);

globus_result_t
wsc_DerivedKeyTokenType_choice_array_copy_contents_wrapper(
    void *                              dest_arr,
    void *                              src_arr);

void *
wsc_DerivedKeyTokenType_choice_array_push_wrapper(
    void * array);

globus_result_t
wsc_DerivedKeyTokenType_choice_deserialize_pointer_wrapper(
    xsd_QName *                         element_qname,
    void **                             ip,
    globus_soap_message_handle_t        message_handle,
    globus_xsd_element_options_t        options);

#ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
EXTERN_C_END
#endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */

#endif
