00001
00007 #ifndef z_accform1_H
00008 #define z_accform1_H
00009
00010 #include <yaz/odr.h>
00011 #include <yaz/z-core.h>
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015
00016 typedef struct Z_PromptObject1 Z_PromptObject1;
00017 YAZ_EXPORT int z_PromptObject1 (ODR o, Z_PromptObject1 **p, int opt, const char *name);
00018
00019 typedef struct Z_ChallengeUnit1 Z_ChallengeUnit1;
00020 YAZ_EXPORT int z_ChallengeUnit1 (ODR o, Z_ChallengeUnit1 **p, int opt, const char *name);
00021
00022 typedef struct Z_Challenge1 Z_Challenge1;
00023 YAZ_EXPORT int z_Challenge1 (ODR o, Z_Challenge1 **p, int opt, const char *name);
00024
00025 typedef struct Z_ResponseUnit1 Z_ResponseUnit1;
00026 YAZ_EXPORT int z_ResponseUnit1 (ODR o, Z_ResponseUnit1 **p, int opt, const char *name);
00027
00028 typedef struct Z_Response1 Z_Response1;
00029 YAZ_EXPORT int z_Response1 (ODR o, Z_Response1 **p, int opt, const char *name);
00030
00031 typedef struct Z_PromptIdEnumeratedPrompt Z_PromptIdEnumeratedPrompt;
00032 YAZ_EXPORT int z_PromptIdEnumeratedPrompt (ODR o, Z_PromptIdEnumeratedPrompt **p, int opt, const char *name);
00033
00034 typedef struct Z_PromptId Z_PromptId;
00035 YAZ_EXPORT int z_PromptId (ODR o, Z_PromptId **p, int opt, const char *name);
00036
00037 typedef struct Z_Encryption Z_Encryption;
00038 YAZ_EXPORT int z_Encryption (ODR o, Z_Encryption **p, int opt, const char *name);
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 struct Z_PromptObject1 {
00046 int which;
00047 union {
00048 Z_Challenge1 *challenge;
00049 Z_Response1 *response;
00050 #define Z_PromptObject1_challenge 1
00051 #define Z_PromptObject1_response 2
00052 } u;
00053 };
00054
00055 struct Z_ChallengeUnit1 {
00056 Z_PromptId *promptId;
00057 Z_InternationalString *defaultResponse;
00058 int which;
00059 union {
00060 Z_InternationalString *character;
00061 Z_Encryption *encrypted;
00062 #define Z_ChallengeUnit1_character 1
00063 #define Z_ChallengeUnit1_encrypted 2
00064 } u;
00065 Z_InternationalString *regExpr;
00066 Odr_null *responseRequired;
00067 int num_allowedValues;
00068 Z_InternationalString **allowedValues;
00069 Odr_null *shouldSave;
00070 #define Z_ChallengeUnit1_integer 1
00071 #define Z_ChallengeUnit1_date 2
00072 #define Z_ChallengeUnit1_float 3
00073 #define Z_ChallengeUnit1_alphaNumeric 4
00074 #define Z_ChallengeUnit1_url_urn 5
00075 #define Z_ChallengeUnit1_boolean 6
00076 int *dataType;
00077 Z_External *diagnostic;
00078 };
00079
00080 struct Z_Challenge1 {
00081 int num;
00082 Z_ChallengeUnit1 **elements;
00083 };
00084
00085 struct Z_ResponseUnit1 {
00086 Z_PromptId *promptId;
00087 int which;
00088 union {
00089 Z_InternationalString *string;
00090 bool_t *accept;
00091 Odr_null *acknowledge;
00092 Z_DiagRec *diagnostic;
00093 Z_Encryption *encrypted;
00094 #define Z_ResponseUnit1_string 1
00095 #define Z_ResponseUnit1_accept 2
00096 #define Z_ResponseUnit1_acknowledge 3
00097 #define Z_ResponseUnit1_diagnostic 4
00098 #define Z_ResponseUnit1_encrypted 5
00099 } u;
00100 };
00101
00102 struct Z_Response1 {
00103 int num;
00104 Z_ResponseUnit1 **elements;
00105 };
00106
00107 struct Z_PromptIdEnumeratedPrompt {
00108 #define Z_PromptIdEnumeratedPrompt_groupId 0
00109 #define Z_PromptIdEnumeratedPrompt_userId 1
00110 #define Z_PromptIdEnumeratedPrompt_password 2
00111 #define Z_PromptIdEnumeratedPrompt_newPassword 3
00112 #define Z_PromptIdEnumeratedPrompt_copyright 4
00113 #define Z_PromptIdEnumeratedPrompt_sessionId 5
00114 int *type;
00115 Z_InternationalString *suggestedString;
00116 };
00117
00118 struct Z_PromptId {
00119 int which;
00120 union {
00121 Z_PromptIdEnumeratedPrompt *enumeratedPrompt;
00122 Z_InternationalString *nonEnumeratedPrompt;
00123 #define Z_PromptId_enumeratedPrompt 1
00124 #define Z_PromptId_nonEnumeratedPrompt 2
00125 } u;
00126 };
00127
00128 struct Z_Encryption {
00129 Odr_oct *cryptType;
00130 Odr_oct *credential;
00131 Odr_oct *data;
00132 };
00133
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137 #endif