1 /** \file zes-pquery.h 2 \brief ASN.1 Module ESFormat-PersistentQuery 3 4 Generated automatically by YAZ ASN.1 Compiler 0.4 5 */ 6 7 #ifndef zes_pquery_H 8 #define zes_pquery_H 9 10 #include <yaz/odr.h> 11 #include <yaz/z-core.h> 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 typedef struct Z_PQueryPersistentQueryEsRequest Z_PQueryPersistentQueryEsRequest; 17 YAZ_EXPORT int z_PQueryPersistentQueryEsRequest(ODR o, Z_PQueryPersistentQueryEsRequest **p, int opt, const char *name); 18 19 typedef struct Z_PQueryPersistentQueryTaskPackage Z_PQueryPersistentQueryTaskPackage; 20 YAZ_EXPORT int z_PQueryPersistentQueryTaskPackage(ODR o, Z_PQueryPersistentQueryTaskPackage **p, int opt, const char *name); 21 22 typedef struct Z_PQueryPersistentQuery Z_PQueryPersistentQuery; 23 YAZ_EXPORT int z_PQueryPersistentQuery(ODR o, Z_PQueryPersistentQuery **p, int opt, const char *name); 24 25 typedef struct Z_PQueryOriginPartToKeep Z_PQueryOriginPartToKeep; 26 YAZ_EXPORT int z_PQueryOriginPartToKeep(ODR o, Z_PQueryOriginPartToKeep **p, int opt, const char *name); 27 28 typedef struct Z_PQueryOriginPartNotToKeep Z_PQueryOriginPartNotToKeep; 29 YAZ_EXPORT int z_PQueryOriginPartNotToKeep(ODR o, Z_PQueryOriginPartNotToKeep **p, int opt, const char *name); 30 31 typedef Z_Query Z_PQueryTargetPart; 32 YAZ_EXPORT int z_PQueryTargetPart(ODR o, Z_PQueryTargetPart **p, int opt, const char *name); 33 #ifdef __cplusplus 34 } 35 #endif 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 struct Z_PQueryPersistentQueryEsRequest { 40 Z_PQueryOriginPartToKeep *toKeep; /* OPT */ 41 Z_PQueryOriginPartNotToKeep *notToKeep; 42 }; 43 44 struct Z_PQueryPersistentQueryTaskPackage { 45 Z_PQueryOriginPartToKeep *originPart; /* OPT */ 46 Z_PQueryTargetPart *targetPart; 47 }; 48 49 struct Z_PQueryPersistentQuery { 50 int which; 51 union { 52 Z_PQueryPersistentQueryEsRequest *esRequest; 53 Z_PQueryPersistentQueryTaskPackage *taskPackage; 54 #define Z_PQueryPersistentQuery_esRequest 1 55 #define Z_PQueryPersistentQuery_taskPackage 2 56 } u; 57 }; 58 59 struct Z_PQueryOriginPartToKeep { 60 int num_dbNames; 61 Z_InternationalString **dbNames; /* OPT */ 62 Z_OtherInformation *additionalSearchInfo; /* OPT */ 63 }; 64 65 struct Z_PQueryOriginPartNotToKeep { 66 int which; 67 union { 68 Z_InternationalString *package; 69 Z_Query *query; 70 #define Z_PQueryOriginPartNotToKeep_package 1 71 #define Z_PQueryOriginPartNotToKeep_query 2 72 } u; 73 }; 74 75 76 77 #ifdef __cplusplus 78 } 79 #endif 80 #endif 81