1 /* c/zx-im-data.h - WARNING: This header was auto generated by xsd2sg.pl. DO NOT EDIT! 2 * $Id$ */ 3 /* Datastructure design, topography, and layout 4 * Copyright (c) 2006,2010 Sampo Kellomaki (sampo@iki.fi), 5 * All Rights Reserved. NO WARRANTY. See file COPYING for 6 * terms and conditions of use. Element and attributes names as well 7 * as some topography are derived from schema descriptions that were used as 8 * input and may be subject to their own copright. */ 9 10 #ifndef _c_zx_im_data_h 11 #define _c_zx_im_data_h 12 13 #include "zx.h" 14 #include "c/zx-const.h" 15 #include "c/zx-data.h" 16 17 #ifndef ZX_ELEM_EXT 18 #define ZX_ELEM_EXT /* This extension point should be defined by who includes this file. */ 19 #endif 20 21 /* -------------------------- im_IdentityMappingRequest -------------------------- */ 22 /* refby( zx_e_Body_s ) */ 23 #ifndef zx_im_IdentityMappingRequest_EXT 24 #define zx_im_IdentityMappingRequest_EXT 25 #endif 26 struct zx_im_IdentityMappingRequest_s { 27 ZX_ELEM_EXT 28 zx_im_IdentityMappingRequest_EXT 29 struct zx_im_MappingInput_s* MappingInput; /* {1,-1} nada */ 30 }; 31 32 #define zx_NEW_im_IdentityMappingRequest(c, father) (struct zx_im_IdentityMappingRequest_s*)zx_new_elem((c),(father),zx_im_IdentityMappingRequest_ELEM) 33 int zx_DEC_ATTR_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x); 34 int zx_DEC_ELEM_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x); 35 36 #ifdef ZX_ENA_AUX 37 struct zx_im_IdentityMappingRequest_s* zx_DEEP_CLONE_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x, int dup_strs); 38 void zx_DUP_STRS_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x); 39 int zx_WALK_SO_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 40 int zx_WALK_WO_im_IdentityMappingRequest(struct zx_ctx* c, struct zx_im_IdentityMappingRequest_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 41 #endif 42 43 #ifdef ZX_ENA_GETPUT 44 45 struct zx_im_MappingInput_s* zx_im_IdentityMappingRequest_GET_MappingInput(struct zx_im_IdentityMappingRequest_s* x, int n); 46 47 int zx_im_IdentityMappingRequest_NUM_MappingInput(struct zx_im_IdentityMappingRequest_s* x); 48 49 struct zx_im_MappingInput_s* zx_im_IdentityMappingRequest_POP_MappingInput(struct zx_im_IdentityMappingRequest_s* x); 50 51 void zx_im_IdentityMappingRequest_PUSH_MappingInput(struct zx_im_IdentityMappingRequest_s* x, struct zx_im_MappingInput_s* y); 52 53 54 void zx_im_IdentityMappingRequest_PUT_MappingInput(struct zx_im_IdentityMappingRequest_s* x, int n, struct zx_im_MappingInput_s* y); 55 56 void zx_im_IdentityMappingRequest_ADD_MappingInput(struct zx_im_IdentityMappingRequest_s* x, int n, struct zx_im_MappingInput_s* z); 57 58 void zx_im_IdentityMappingRequest_DEL_MappingInput(struct zx_im_IdentityMappingRequest_s* x, int n); 59 60 void zx_im_IdentityMappingRequest_REV_MappingInput(struct zx_im_IdentityMappingRequest_s* x); 61 62 #endif 63 /* -------------------------- im_IdentityMappingResponse -------------------------- */ 64 /* refby( zx_e_Body_s ) */ 65 #ifndef zx_im_IdentityMappingResponse_EXT 66 #define zx_im_IdentityMappingResponse_EXT 67 #endif 68 struct zx_im_IdentityMappingResponse_s { 69 ZX_ELEM_EXT 70 zx_im_IdentityMappingResponse_EXT 71 struct zx_lu_Status_s* Status; /* {1,1} nada */ 72 struct zx_im_MappingOutput_s* MappingOutput; /* {0,-1} nada */ 73 }; 74 75 #define zx_NEW_im_IdentityMappingResponse(c, father) (struct zx_im_IdentityMappingResponse_s*)zx_new_elem((c),(father),zx_im_IdentityMappingResponse_ELEM) 76 int zx_DEC_ATTR_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x); 77 int zx_DEC_ELEM_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x); 78 79 #ifdef ZX_ENA_AUX 80 struct zx_im_IdentityMappingResponse_s* zx_DEEP_CLONE_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x, int dup_strs); 81 void zx_DUP_STRS_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x); 82 int zx_WALK_SO_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 83 int zx_WALK_WO_im_IdentityMappingResponse(struct zx_ctx* c, struct zx_im_IdentityMappingResponse_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 84 #endif 85 86 #ifdef ZX_ENA_GETPUT 87 88 struct zx_lu_Status_s* zx_im_IdentityMappingResponse_GET_Status(struct zx_im_IdentityMappingResponse_s* x, int n); 89 struct zx_im_MappingOutput_s* zx_im_IdentityMappingResponse_GET_MappingOutput(struct zx_im_IdentityMappingResponse_s* x, int n); 90 91 int zx_im_IdentityMappingResponse_NUM_Status(struct zx_im_IdentityMappingResponse_s* x); 92 int zx_im_IdentityMappingResponse_NUM_MappingOutput(struct zx_im_IdentityMappingResponse_s* x); 93 94 struct zx_lu_Status_s* zx_im_IdentityMappingResponse_POP_Status(struct zx_im_IdentityMappingResponse_s* x); 95 struct zx_im_MappingOutput_s* zx_im_IdentityMappingResponse_POP_MappingOutput(struct zx_im_IdentityMappingResponse_s* x); 96 97 void zx_im_IdentityMappingResponse_PUSH_Status(struct zx_im_IdentityMappingResponse_s* x, struct zx_lu_Status_s* y); 98 void zx_im_IdentityMappingResponse_PUSH_MappingOutput(struct zx_im_IdentityMappingResponse_s* x, struct zx_im_MappingOutput_s* y); 99 100 101 void zx_im_IdentityMappingResponse_PUT_Status(struct zx_im_IdentityMappingResponse_s* x, int n, struct zx_lu_Status_s* y); 102 void zx_im_IdentityMappingResponse_PUT_MappingOutput(struct zx_im_IdentityMappingResponse_s* x, int n, struct zx_im_MappingOutput_s* y); 103 104 void zx_im_IdentityMappingResponse_ADD_Status(struct zx_im_IdentityMappingResponse_s* x, int n, struct zx_lu_Status_s* z); 105 void zx_im_IdentityMappingResponse_ADD_MappingOutput(struct zx_im_IdentityMappingResponse_s* x, int n, struct zx_im_MappingOutput_s* z); 106 107 void zx_im_IdentityMappingResponse_DEL_Status(struct zx_im_IdentityMappingResponse_s* x, int n); 108 void zx_im_IdentityMappingResponse_DEL_MappingOutput(struct zx_im_IdentityMappingResponse_s* x, int n); 109 110 void zx_im_IdentityMappingResponse_REV_Status(struct zx_im_IdentityMappingResponse_s* x); 111 void zx_im_IdentityMappingResponse_REV_MappingOutput(struct zx_im_IdentityMappingResponse_s* x); 112 113 #endif 114 /* -------------------------- im_MappingInput -------------------------- */ 115 /* refby( zx_im_IdentityMappingRequest_s ) */ 116 #ifndef zx_im_MappingInput_EXT 117 #define zx_im_MappingInput_EXT 118 #endif 119 struct zx_im_MappingInput_s { 120 ZX_ELEM_EXT 121 zx_im_MappingInput_EXT 122 struct zx_sec_TokenPolicy_s* TokenPolicy; /* {0,1} nada */ 123 struct zx_sec_Token_s* Token; /* {0,1} nada */ 124 struct zx_attr_s* reqID; /* {0,1} attribute xs:string */ 125 }; 126 127 #define zx_NEW_im_MappingInput(c, father) (struct zx_im_MappingInput_s*)zx_new_elem((c),(father),zx_im_MappingInput_ELEM) 128 int zx_DEC_ATTR_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x); 129 int zx_DEC_ELEM_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x); 130 131 #ifdef ZX_ENA_AUX 132 struct zx_im_MappingInput_s* zx_DEEP_CLONE_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x, int dup_strs); 133 void zx_DUP_STRS_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x); 134 int zx_WALK_SO_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 135 int zx_WALK_WO_im_MappingInput(struct zx_ctx* c, struct zx_im_MappingInput_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 136 #endif 137 138 #ifdef ZX_ENA_GETPUT 139 struct zx_attr_s* zx_im_MappingInput_GET_reqID(struct zx_im_MappingInput_s* x); 140 141 struct zx_sec_TokenPolicy_s* zx_im_MappingInput_GET_TokenPolicy(struct zx_im_MappingInput_s* x, int n); 142 struct zx_sec_Token_s* zx_im_MappingInput_GET_Token(struct zx_im_MappingInput_s* x, int n); 143 144 int zx_im_MappingInput_NUM_TokenPolicy(struct zx_im_MappingInput_s* x); 145 int zx_im_MappingInput_NUM_Token(struct zx_im_MappingInput_s* x); 146 147 struct zx_sec_TokenPolicy_s* zx_im_MappingInput_POP_TokenPolicy(struct zx_im_MappingInput_s* x); 148 struct zx_sec_Token_s* zx_im_MappingInput_POP_Token(struct zx_im_MappingInput_s* x); 149 150 void zx_im_MappingInput_PUSH_TokenPolicy(struct zx_im_MappingInput_s* x, struct zx_sec_TokenPolicy_s* y); 151 void zx_im_MappingInput_PUSH_Token(struct zx_im_MappingInput_s* x, struct zx_sec_Token_s* y); 152 153 void zx_im_MappingInput_PUT_reqID(struct zx_im_MappingInput_s* x, struct zx_attr_s* y); 154 155 void zx_im_MappingInput_PUT_TokenPolicy(struct zx_im_MappingInput_s* x, int n, struct zx_sec_TokenPolicy_s* y); 156 void zx_im_MappingInput_PUT_Token(struct zx_im_MappingInput_s* x, int n, struct zx_sec_Token_s* y); 157 158 void zx_im_MappingInput_ADD_TokenPolicy(struct zx_im_MappingInput_s* x, int n, struct zx_sec_TokenPolicy_s* z); 159 void zx_im_MappingInput_ADD_Token(struct zx_im_MappingInput_s* x, int n, struct zx_sec_Token_s* z); 160 161 void zx_im_MappingInput_DEL_TokenPolicy(struct zx_im_MappingInput_s* x, int n); 162 void zx_im_MappingInput_DEL_Token(struct zx_im_MappingInput_s* x, int n); 163 164 void zx_im_MappingInput_REV_TokenPolicy(struct zx_im_MappingInput_s* x); 165 void zx_im_MappingInput_REV_Token(struct zx_im_MappingInput_s* x); 166 167 #endif 168 /* -------------------------- im_MappingOutput -------------------------- */ 169 /* refby( zx_im_IdentityMappingResponse_s ) */ 170 #ifndef zx_im_MappingOutput_EXT 171 #define zx_im_MappingOutput_EXT 172 #endif 173 struct zx_im_MappingOutput_s { 174 ZX_ELEM_EXT 175 zx_im_MappingOutput_EXT 176 struct zx_sec_Token_s* Token; /* {1,1} nada */ 177 struct zx_attr_s* reqRef; /* {0,1} attribute lu:IDReferenceType */ 178 }; 179 180 #define zx_NEW_im_MappingOutput(c, father) (struct zx_im_MappingOutput_s*)zx_new_elem((c),(father),zx_im_MappingOutput_ELEM) 181 int zx_DEC_ATTR_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x); 182 int zx_DEC_ELEM_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x); 183 184 #ifdef ZX_ENA_AUX 185 struct zx_im_MappingOutput_s* zx_DEEP_CLONE_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x, int dup_strs); 186 void zx_DUP_STRS_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x); 187 int zx_WALK_SO_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 188 int zx_WALK_WO_im_MappingOutput(struct zx_ctx* c, struct zx_im_MappingOutput_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 189 #endif 190 191 #ifdef ZX_ENA_GETPUT 192 struct zx_attr_s* zx_im_MappingOutput_GET_reqRef(struct zx_im_MappingOutput_s* x); 193 194 struct zx_sec_Token_s* zx_im_MappingOutput_GET_Token(struct zx_im_MappingOutput_s* x, int n); 195 196 int zx_im_MappingOutput_NUM_Token(struct zx_im_MappingOutput_s* x); 197 198 struct zx_sec_Token_s* zx_im_MappingOutput_POP_Token(struct zx_im_MappingOutput_s* x); 199 200 void zx_im_MappingOutput_PUSH_Token(struct zx_im_MappingOutput_s* x, struct zx_sec_Token_s* y); 201 202 void zx_im_MappingOutput_PUT_reqRef(struct zx_im_MappingOutput_s* x, struct zx_attr_s* y); 203 204 void zx_im_MappingOutput_PUT_Token(struct zx_im_MappingOutput_s* x, int n, struct zx_sec_Token_s* y); 205 206 void zx_im_MappingOutput_ADD_Token(struct zx_im_MappingOutput_s* x, int n, struct zx_sec_Token_s* z); 207 208 void zx_im_MappingOutput_DEL_Token(struct zx_im_MappingOutput_s* x, int n); 209 210 void zx_im_MappingOutput_REV_Token(struct zx_im_MappingOutput_s* x); 211 212 #endif 213 214 #endif 215