X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fprt-exd.h;h=fa3c8751034cb180918ae8a72448a8cd653e1477;hp=0b8bdcefe5d89dfad90200af71a8d9ced2685c14;hb=559aecba0e61eca34706023436692ba23faa29a7;hpb=f8ec9ce4a0624d49be64a0cce115846155b79e42 diff --git a/include/prt-exd.h b/include/prt-exd.h index 0b8bdce..fa3c875 100644 --- a/include/prt-exd.h +++ b/include/prt-exd.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 + typedef struct Z_TaskPackage { Odr_oid *packageType; @@ -195,19 +199,21 @@ typedef struct Z_IUOriginPartToKeep #define Z_IUOriginPartToKeep_recordReplace 2 #define Z_IUOriginPartToKeep_recordDelete 3 #define Z_IUOriginPartToKeep_elementUpdate 4 +#define Z_IUOriginPartToKeep_specialUpdate 5 char *databaseName; - Odr_oid *schema; /* OPTIONAL */ - char *elementSetName; /* OPTIONAL */ + Odr_oid *schema; /* OPTIONAL */ + char *elementSetName; /* OPTIONAL */ + Odr_external *actionQualifier; /* OPTIONAL */ } Z_IUOriginPartToKeep; typedef struct Z_IUTaskPackageRecordStructure { int which; #define Z_IUTaskPackageRecordStructure_record 1 -#define Z_IUTaskPackageRecordStructure_diagnostic 2 +#define Z_IUTaskPackageRecordStructure_surrogateDiagnostics 2 union { Odr_external *record; - Z_DiagRec *diagnostic; + Z_DiagRecs *surrogateDiagnostics; } u; /* OPTIONAL */ Z_IUCorrelationInfo *correlationInfo; /* OPTIONAL */ int *recordStatus; @@ -215,6 +221,7 @@ typedef struct Z_IUTaskPackageRecordStructure #define Z_IUTaskPackageRecordStructureS_queued 2 #define Z_IUTaskPackageRecordStructureS_inProcess 3 #define Z_IUTaskPackageRecordStructureS_failure 4 + Z_DiagRecs *supplementalDiagnostics; /* OPTIONAL */ } Z_IUTaskPackageRecordStructure; typedef struct Z_IUTargetPart @@ -252,6 +259,10 @@ typedef struct Z_IUUpdate } u; } Z_IUUpdate; -int z_IUUpdate(ODR o, Z_IUUpdate **p, int opt); +YAZ_EXPORT int z_IUUpdate(ODR o, Z_IUUpdate **p, int opt); + +#ifdef __cplusplus +} +#endif #endif