X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fprt-grs.h;h=fa409966fb2d6c621ae6bc390896a3a11badd4e8;hb=4e664c278636002a3a0c7897d233a258ac1ec18d;hp=7983a63faaf503f97b86e3f4126f181ffb764f2b;hpb=4ae699c927bc26f3550d1a8ca911e8d1fe75dbfc;p=yaz-moved-to-github.git diff --git a/include/prt-grs.h b/include/prt-grs.h index 7983a63..fa40996 100644 --- a/include/prt-grs.h +++ b/include/prt-grs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995-1998, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -30,6 +30,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + struct Z_GenericRecord; typedef struct Z_GenericRecord Z_GenericRecord; @@ -94,7 +98,7 @@ typedef struct Z_HitVector typedef struct Z_Triple { Odr_oid *variantSetId; /* OPTIONAL */ - int *class; + int *zclass; int *type; int which; #define Z_Triple_integer 0 @@ -111,7 +115,7 @@ typedef struct Z_Triple char *internationalString; Odr_oct *octetString; Odr_oid *oid; - bool_t *boolean; + bool_t *zboolean; Odr_null *null; Z_Unit *unit; Z_IntUnit *valueAndUnit; @@ -170,7 +174,13 @@ struct Z_GenericRecord Z_TaggedElement **elements; }; -int z_GenericRecord(ODR o, Z_GenericRecord **p, int opt); -int z_Variant(ODR o, Z_Variant **p, int opt); +YAZ_EXPORT int z_GenericRecord(ODR o, Z_GenericRecord **p, int opt, + const char *name); +YAZ_EXPORT int z_Variant(ODR o, Z_Variant **p, int opt, + const char *name); + +#ifdef __cplusplus +} +#endif #endif