-/* $Id: api.h,v 1.39 2006-08-22 13:59:02 adam Exp $
+/* $Id: api.h,v 1.41 2006-11-21 22:17:49 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
YAZ_BEGIN_CDECL
-/**
- expand GCC_ATTRIBUTE if GCC is in use. See :
- http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
-
- To see gcc pre-defines for c:
- gcc -E -dM -x c /dev/null
-*/
-
-#ifdef __GNUC__
-#if __GNUC__ >= 4
-#define ZEBRA_GCC_ATTR(x) __attribute__ (x)
-#endif
-#endif
-
-#ifndef ZEBRA_GCC_ATTR
-#define ZEBRA_GCC_ATTR(x)
-#endif
-
typedef struct {
zint processed;
zint inserted;
int len; /* length */
oid_value format; /* record syntax */
char *base;
- SYSNO sysno;
+ zint sysno;
int score;
} ZebraRetrievalRecord;
YAZ_EXPORT
ZEBRA_RES zebra_insert_record(ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match,
+ zint *sysno, const char *match,
const char *fname,
const char *buf, int buf_size,
int force_update);
YAZ_EXPORT
ZEBRA_RES zebra_update_record(ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match,
+ zint *sysno, const char *match,
const char *fname,
const char *buf, int buf_size,
int force_update);
YAZ_EXPORT
ZEBRA_RES zebra_delete_record(ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match, const char *fname,
+ zint *sysno, const char *match,
+ const char *fname,
const char *buf, int buf_size,
int force_update);