-/* $Id: zebraapi.h,v 1.14 2004-08-04 08:35:23 adam Exp $
+/* $Id: zebraapi.h,v 1.13.2.1 2004-11-26 11:06:12 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
#ifndef ZEBRAAPI_H
#define ZEBRAAPI_H
+#include <yaz/log.h>
#include <yaz/odr.h>
#include <yaz/oid.h>
#include <yaz/proto.h>
int len; /* length */
oid_value format; /* record syntax */
char *base;
- SYSNO sysno;
+ int sysno;
int score;
} ZebraRetrievalRecord;
int zebra_insert_record (ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match, const char *fname,
+ int *sysno, const char *match, const char *fname,
const char *buf, int buf_size,
int force_update);
int zebra_update_record (ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match, const char *fname,
+ int* sysno, const char *match, const char *fname,
const char *buf, int buf_size,
int force_update);
int zebra_delete_record (ZebraHandle zh,
const char *recordType,
- SYSNO *sysno, const char *match, const char *fname,
+ int *sysno, const char *match, const char *fname,
const char *buf, int buf_size,
int force_update);
int *type, char *out, size_t *len);
YAZ_EXPORT int zebra_sort (ZebraHandle zh, ODR stream,
- int num_input_setnames,
- const char **input_setnames,
- const char *output_setname,
- Z_SortKeySpecList *sort_sequence,
- int *sort_status);
+ int num_input_setnames,
+ const char **input_setnames,
+ const char *output_setname,
+ Z_SortKeySpecList *sort_sequence,
+ int *sort_status);
YAZ_EXPORT
int zebra_select_databases (ZebraHandle zh, int num_bases,
-/* $Id: zebrautl.h,v 1.8 2004-08-04 08:35:23 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
+/* $Id: zebrautl.h,v 1.7.2.1 2004-11-26 11:06:12 adam Exp $
+ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
This file is part of the Zebra server.
#ifndef ZEBRA_UTIL_H
#define ZEBRA_UTIL_H
+#include <yaz/log.h>
#include <yaz/yaz-util.h>
#include <res.h>
#include <zebraver.h>
-YAZ_BEGIN_CDECL
-zint atoi_zn (const char *buf, zint len);
-YAZ_END_CDECL
-
#endif
-/* $Id: zebraapi.c,v 1.120.2.1 2004-09-09 10:43:18 adam Exp $
+/* $Id: zebraapi.c,v 1.120.2.2 2004-11-26 11:06:12 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
#include <unistd.h>
#endif
+#include <yaz/log.h>
#include <yaz/diagbib1.h>
#include <yaz/pquery.h>
#include <yaz/sortspec.h>
-/* $Id: zrpn.c,v 1.141.2.3 2004-11-15 22:52:48 adam Exp $
+/* $Id: zrpn.c,v 1.141.2.4 2004-11-26 11:06:13 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
if ((r=att_getentbyatt (zh, &attp, curAttributeSet, use_value,
use_string)))
{
- yaz_log(LOG_DEBUG, "att_getentbyatt fail. set=%d use=%d r=%d",
+ yaz_log(LOG_LOG, "att_getentbyatt fail. set=%d use=%d r=%d",
curAttributeSet, use_value, r);
if (r == -1)
{
-/* $Id: charmap.c,v 1.29.2.2 2004-09-16 14:07:51 adam Exp $
+/* $Id: charmap.c,v 1.29.2.3 2004-11-26 11:06:13 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
typedef unsigned ucs4_t;
-#include <yaz/yaz-util.h>
+#include <zebrautl.h>
#include <charmap.h>
-
#define CHR_MAXSTR 1024
#define CHR_MAXEQUIV 32
-/* $Id: res.c,v 1.37 2004-07-26 13:59:25 adam Exp $
+/* $Id: res.c,v 1.37.2.1 2004-11-26 11:06:13 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
#endif
#include <zebrautl.h>
-#include <yaz/yaz-util.h>
struct res_entry {
char *name;
-/* $Id: zebramap.c,v 1.32.2.1 2004-09-16 14:07:51 adam Exp $
+/* $Id: zebramap.c,v 1.32.2.2 2004-11-26 11:06:13 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
#include <assert.h>
#include <ctype.h>
-#include <yaz/yaz-util.h>
+#include <zebrautl.h>
#include <charmap.h>
#include <zebramap.h>