2 * Copyright (c) 1998-2003, Index Data
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: proto.h,v 1.10 2003-07-14 12:59:23 adam Exp $
12 #define ASN_COMPILED 1
14 #include <yaz/yaz-version.h>
15 #include <yaz/z-accdes1.h>
16 #include <yaz/z-accform1.h>
17 #include <yaz/z-acckrb1.h>
18 #include <yaz/z-core.h>
19 #include <yaz/z-diag1.h>
20 #include <yaz/z-espec1.h>
21 #include <yaz/z-estask.h>
22 #include <yaz/z-exp.h>
23 #include <yaz/z-grs.h>
24 #include <yaz/z-opac.h>
25 #include <yaz/z-rrf1.h>
26 #include <yaz/z-rrf2.h>
27 #include <yaz/z-sum.h>
28 #include <yaz/z-sutrs.h>
29 #include <yaz/z-uifr1.h>
30 #include <yaz/zes-expi.h>
31 #include <yaz/zes-exps.h>
32 #include <yaz/zes-order.h>
33 #include <yaz/zes-pquery.h>
34 #include <yaz/zes-psched.h>
35 #include <yaz/zes-pset.h>
36 #include <yaz/zes-update.h>
37 #include <yaz/zes-admin.h>
38 #include <yaz/z-date.h>
39 #include <yaz/z-univ.h>
40 #include <yaz/zes-update0.h>
41 #include <yaz/z-charneg.h>
42 #include <yaz/z-mterm2.h>
44 #include <yaz/wrbuf.h>
49 #define Z_PRES_SUCCESS Z_PresentStatus_success
50 #define Z_PRES_PARTIAL_1 Z_PresentStatus_partial_1
51 #define Z_PRES_PARTIAL_2 Z_PresentStatus_partial_2
52 #define Z_PRES_PARTIAL_3 Z_PresentStatus_partial_3
53 #define Z_PRES_PARTIAL_4 Z_PresentStatus_partial_4
54 #define Z_PRES_FAILURE Z_PresentStatus_failure
56 #define Z_RES_SUBSET Z_SearchResponse_subset
57 #define Z_RES_INTERIM Z_SearchResponse_interim
58 #define Z_RES_NONE Z_SearchResponse_none
60 #define Z_SortStatus_success Z_SortResponse_success
61 #define Z_SortStatus_partial_1 Z_SortResponse_partial_1
62 #define Z_SortStatus_failure Z_SortResponse_failure
64 #define Z_SortRelation_ascending Z_SortKeySpec_ascending
65 #define Z_SortRelation_descending Z_SortKeySpec_descending
66 #define Z_SortRelation_ascendingByFreq Z_SortKeySpec_ascendingByFrequency
67 #define Z_SortRelation_descendingByFreq Z_SortKeySpec_descendingByfrequency
69 #define Z_SortCase_caseSensitive Z_SortKeySpec_caseSensitive
70 #define Z_SortCase_caseInsensitive Z_SortKeySpec_caseInsensitive
72 #define Z_TriggerResourceCtrl_resourceReport Z_TriggerResourceControlRequest_resourceReport
73 #define Z_TriggerResourceCtrl_resourceControl Z_TriggerResourceControlRequest_resourceControl
74 #define Z_TriggerResourceCtrl_cancel Z_TriggerResourceControlRequest_cancel
76 #define Z_DeleteRequest_list Z_DeleteResultSetRequest_list
77 #define Z_DeleteRequest_all Z_DeleteResultSetRequest_all
79 #define Z_AccessRequest_simpleForm Z_AccessControlRequest_simpleForm
80 #define Z_AccessRequest_externallyDefined Z_AccessControlRequest_externallyDefined
82 #define Z_AccessResponse_simpleForm Z_AccessControlResponse_simpleForm
83 #define Z_AccessResponse_externallyDefined Z_AccessControlResponse_externallyDefined
85 #define Z_ResourceReportStatus_success Z_ResourceReportResponse_success
86 #define Z_ResourceReportStatus_partial Z_ResourceReportResponse_partial
87 #define Z_ResourceReportStatus_failure_1 Z_ResourceReportResponse_failure_1
88 #define Z_ResourceReportStatus_failure_2 Z_ResourceReportResponse_failure_2
89 #define Z_ResourceReportStatus_failure_3 Z_ResourceReportResponse_failure_3
90 #define Z_ResourceReportStatus_failure_4 Z_ResourceReportResponse_failure_4
91 #define Z_ResourceReportStatus_failure_5 Z_ResourceReportResponse_failure_5
92 #define Z_ResourceReportStatus_failure_6 Z_ResourceReportResponse_failure_6
94 #define Z_SortResultSetStatus_empty Z_SortResponse_empty
95 #define Z_SortResultSetStatus_interim Z_SortResponse_interim
96 #define Z_SortResultSetStatus_unchanged Z_SortResponse_unchanged
97 #define Z_SortResultSetStatus_none Z_SortResponse_none
99 typedef Z_External Z_DatabaseRecord;
100 typedef struct Z_IOItemOrder Z_ItemOrder;
102 YAZ_EXPORT Z_APDU *zget_APDU(ODR o, int which);
103 YAZ_EXPORT Z_Close *zget_Close (ODR o);
104 YAZ_EXPORT Odr_oid *yaz_oidval_to_z3950oid (ODR o, int oid_class,
106 YAZ_EXPORT Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class,
108 YAZ_EXPORT const char *yaz_z3950oid_to_str (Odr_oid *oid, int *oid_class);
110 YAZ_EXPORT const char* yaz_z3950_oid_value_to_str(oid_value ov, oid_class oc);
112 YAZ_EXPORT void yaz_display_grs1(WRBUF wrbuf, Z_GenericRecord *r, int flags);
114 YAZ_EXPORT void yaz_display_OPAC(WRBUF wrbuf, Z_OPACRecord *r, int flags);
118 #include <yaz/prt-ext.h>