/* c/zx-dp-data.h - WARNING: This header was auto generated by xsd2sg.pl. DO NOT EDIT!
 * $Id$ */
/* Datastructure design, topography, and layout
 * Copyright (c) 2006,2010 Sampo Kellomaki (sampo@iki.fi),
 * All Rights Reserved. NO WARRANTY. See file COPYING for
 * terms and conditions of use. Element and attributes names as well
 * as some topography are derived from schema descriptions that were used as
 * input and may be subject to their own copright. */

#ifndef _c_zx_dp_data_h
#define _c_zx_dp_data_h

#include "zx.h"
#include "c/zx-const.h"
#include "c/zx-data.h"

#ifndef ZX_ELEM_EXT
#define ZX_ELEM_EXT  /* This extension point should be defined by who includes this file. */
#endif

/* -------------------------- dp_Request -------------------------- */
/* refby( zx_shps_PollResponse_s zx_prov_PollResponse_s ) */
#ifndef zx_dp_Request_EXT
#define zx_dp_Request_EXT
#endif
struct zx_dp_Request_s {
  ZX_ELEM_EXT
  zx_dp_Request_EXT
  struct zx_attr_s* itemID;	/* {1,1} attribute xs:string */
};

#define zx_NEW_dp_Request(c, father) (struct zx_dp_Request_s*)zx_new_elem((c),(father),zx_dp_Request_ELEM)
int zx_DEC_ATTR_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x);
int zx_DEC_ELEM_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x);

#ifdef ZX_ENA_AUX
struct zx_dp_Request_s* zx_DEEP_CLONE_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x, int dup_strs);
void zx_DUP_STRS_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x);
int zx_WALK_SO_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx));
int zx_WALK_WO_dp_Request(struct zx_ctx* c, struct zx_dp_Request_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx));
#endif

#ifdef ZX_ENA_GETPUT
struct zx_attr_s* zx_dp_Request_GET_itemID(struct zx_dp_Request_s* x);





void zx_dp_Request_PUT_itemID(struct zx_dp_Request_s* x, struct zx_attr_s* y);





#endif
/* -------------------------- dp_Response -------------------------- */
/* refby( zx_shps_Poll_s zx_prov_Poll_s ) */
#ifndef zx_dp_Response_EXT
#define zx_dp_Response_EXT
#endif
struct zx_dp_Response_s {
  ZX_ELEM_EXT
  zx_dp_Response_EXT
  struct zx_attr_s* ref;	/* {1,1} attribute xs:anyURI */
};

#define zx_NEW_dp_Response(c, father) (struct zx_dp_Response_s*)zx_new_elem((c),(father),zx_dp_Response_ELEM)
int zx_DEC_ATTR_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x);
int zx_DEC_ELEM_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x);

#ifdef ZX_ENA_AUX
struct zx_dp_Response_s* zx_DEEP_CLONE_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x, int dup_strs);
void zx_DUP_STRS_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x);
int zx_WALK_SO_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx));
int zx_WALK_WO_dp_Response(struct zx_ctx* c, struct zx_dp_Response_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx));
#endif

#ifdef ZX_ENA_GETPUT
struct zx_attr_s* zx_dp_Response_GET_ref(struct zx_dp_Response_s* x);





void zx_dp_Response_PUT_ref(struct zx_dp_Response_s* x, struct zx_attr_s* y);





#endif

#endif
