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.6 2003-01-06 08:20:27 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>
48 #define Z_PRES_SUCCESS Z_PresentStatus_success
49 #define Z_PRES_PARTIAL_1 Z_PresentStatus_partial_1
50 #define Z_PRES_PARTIAL_2 Z_PresentStatus_partial_2
51 #define Z_PRES_PARTIAL_3 Z_PresentStatus_partial_3
52 #define Z_PRES_PARTIAL_4 Z_PresentStatus_partial_4
53 #define Z_PRES_FAILURE Z_PresentStatus_failure
55 #define Z_RES_SUBSET Z_SearchResponse_subset
56 #define Z_RES_INTERIM Z_SearchResponse_interim
57 #define Z_RES_NONE Z_SearchResponse_none
59 #define Z_SortStatus_success Z_SortResponse_success
60 #define Z_SortStatus_partial_1 Z_SortResponse_partial_1
61 #define Z_SortStatus_failure Z_SortResponse_failure
63 #define Z_SortRelation_ascending Z_SortKeySpec_ascending
64 #define Z_SortRelation_descending Z_SortKeySpec_descending
65 #define Z_SortRelation_ascendingByFreq Z_SortKeySpec_ascendingByFrequency
66 #define Z_SortRelation_descendingByFreq Z_SortKeySpec_descendingByfrequency
68 #define Z_SortCase_caseSensitive Z_SortKeySpec_caseSensitive
69 #define Z_SortCase_caseInsensitive Z_SortKeySpec_caseInsensitive
71 #define Z_TriggerResourceCtrl_resourceReport Z_TriggerResourceControlRequest_resourceReport
72 #define Z_TriggerResourceCtrl_resourceControl Z_TriggerResourceControlRequest_resourceControl
73 #define Z_TriggerResourceCtrl_cancel Z_TriggerResourceControlRequest_cancel
75 #define Z_DeleteRequest_list Z_DeleteResultSetRequest_list
76 #define Z_DeleteRequest_all Z_DeleteResultSetRequest_all
78 #define Z_AccessRequest_simpleForm Z_AccessControlRequest_simpleForm
79 #define Z_AccessRequest_externallyDefined Z_AccessControlRequest_externallyDefined
81 #define Z_AccessResponse_simpleForm Z_AccessControlResponse_simpleForm
82 #define Z_AccessResponse_externallyDefined Z_AccessControlResponse_externallyDefined
84 #define Z_ResourceReportStatus_success Z_ResourceReportResponse_success
85 #define Z_ResourceReportStatus_partial Z_ResourceReportResponse_partial
86 #define Z_ResourceReportStatus_failure_1 Z_ResourceReportResponse_failure_1
87 #define Z_ResourceReportStatus_failure_2 Z_ResourceReportResponse_failure_2
88 #define Z_ResourceReportStatus_failure_3 Z_ResourceReportResponse_failure_3
89 #define Z_ResourceReportStatus_failure_4 Z_ResourceReportResponse_failure_4
90 #define Z_ResourceReportStatus_failure_5 Z_ResourceReportResponse_failure_5
91 #define Z_ResourceReportStatus_failure_6 Z_ResourceReportResponse_failure_6
93 #define Z_SortResultSetStatus_empty Z_SortResponse_empty
94 #define Z_SortResultSetStatus_interim Z_SortResponse_interim
95 #define Z_SortResultSetStatus_unchanged Z_SortResponse_unchanged
96 #define Z_SortResultSetStatus_none Z_SortResponse_none
98 typedef Z_External Z_DatabaseRecord;
99 typedef struct Z_IOItemOrder Z_ItemOrder;
101 YAZ_EXPORT Z_APDU *zget_APDU(ODR o, int which);
102 YAZ_EXPORT Z_Close *zget_Close (ODR o);
103 YAZ_EXPORT Odr_oid *yaz_oidval_to_z3950oid (ODR o, int oid_class,
105 YAZ_EXPORT Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class,
107 YAZ_EXPORT const char *yaz_z3950oid_to_str (Odr_oid *oid, int *oid_class);
109 YAZ_EXPORT const char* yaz_z3950_oid_value_to_str(oid_value ov, oid_class oc);
111 YAZ_EXPORT void yaz_display_grs1(WRBUF wrbuf, Z_GenericRecord *r, int flags);
115 #include <yaz/prt-ext.h>