X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fproto.h;h=60d3ec7e61cad182e56fa548e3594040dcfa4f5d;hp=e88856d8201fee1c22371f068b7d030c74e7d581;hb=f6def128a97444384d6c0939eaa04fb0e931d6df;hpb=c2e2ad215f5b5f76265f2651d1f326e160a8b5c2 diff --git a/include/yaz/proto.h b/include/yaz/proto.h index e88856d..60d3ec7 100644 --- a/include/yaz/proto.h +++ b/include/yaz/proto.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -72,7 +73,10 @@ #include YAZ_BEGIN_CDECL -#if 1 +/* Here are a lot of definitions that were defined in YAZ 1 and which + are still in use by some applications. We keep those to preserve + backwards compatibility.. They cause no harm. +*/ #define Z_PRES_SUCCESS Z_PresentStatus_success #define Z_PRES_PARTIAL_1 Z_PresentStatus_partial_1 #define Z_PRES_PARTIAL_2 Z_PresentStatus_partial_2 @@ -122,13 +126,11 @@ YAZ_BEGIN_CDECL #define Z_SortResultSetStatus_interim Z_SortResponse_interim #define Z_SortResultSetStatus_unchanged Z_SortResponse_unchanged #define Z_SortResultSetStatus_none Z_SortResponse_none -#endif typedef Z_External Z_DatabaseRecord; typedef struct Z_IOItemOrder Z_ItemOrder; YAZ_EXPORT Z_APDU *zget_APDU(ODR o, int which); -YAZ_EXPORT Z_Close *zget_Close (ODR o); /** \brief Performs "pretty" display of GRS-1 record to WRBUF */ YAZ_EXPORT void yaz_display_grs1(WRBUF wrbuf, Z_GenericRecord *r, int flags);