From 7c6601c3f7675ba24f2f154b196f0cdd11bb080c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 30 Aug 2005 13:10:05 +0000 Subject: [PATCH] Export some functions for idzebra.dll --- include/res.h | 36 +++++++++++++++++------------------- include/zebraapi.h | 32 ++++++++++++++++---------------- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/include/res.h b/include/res.h index 4fb3bd7..6720797 100644 --- a/include/res.h +++ b/include/res.h @@ -1,4 +1,4 @@ -/* $Id: res.h,v 1.13 2004-01-22 11:27:21 adam Exp $ +/* $Id: res.h,v 1.13.2.1 2005-08-30 13:10:05 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -25,26 +25,24 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef RES_H #define RES_H -#ifdef __cplusplus -extern "C" { -#endif +#include + +YAZ_BEGIN_CDECL - typedef struct res_struct *Res; - - Res res_open (const char *name, Res res_def, Res over_res); - void res_close (Res r); - const char *res_get (Res r, const char *name); - const char *res_get_def (Res r, const char *name, const char *def); - int res_get_match (Res r, const char *name, const char *value, const char *s); - void res_set (Res r, const char *name, const char *value); - int res_trav (Res r, const char *prefix, void *p, - void (*f)(void *p, const char *name, const char *value)); - int res_write (Res r); - const char *res_get_prefix (Res r, const char *name, const char *prefix, +typedef struct res_struct *Res; + +YAZ_EXPORT Res res_open (const char *name, Res res_def, Res over_res); +YAZ_EXPORT void res_close (Res r); +YAZ_EXPORT const char *res_get (Res r, const char *name); +YAZ_EXPORT const char *res_get_def (Res r, const char *name, const char *def); +YAZ_EXPORT int res_get_match (Res r, const char *name, const char *value, const char *s); +YAZ_EXPORT void res_set (Res r, const char *name, const char *value); +YAZ_EXPORT int res_trav (Res r, const char *prefix, void *p, + void (*f)(void *p, const char *name, const char *value)); +YAZ_EXPORT int res_write (Res r); +YAZ_EXPORT const char *res_get_prefix (Res r, const char *name, const char *prefix, const char *def); -#ifdef __cplusplus -} -#endif +YAZ_END_CDECL #endif diff --git a/include/zebraapi.h b/include/zebraapi.h index 805ba45..af6da3a 100644 --- a/include/zebraapi.h +++ b/include/zebraapi.h @@ -1,4 +1,4 @@ -/* $Id: zebraapi.h,v 1.13.2.1 2004-11-26 11:06:12 adam Exp $ +/* $Id: zebraapi.h,v 1.13.2.2 2005-08-30 13:10:05 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -188,38 +188,38 @@ YAZ_EXPORT int zebra_admin_import_segment (ZebraHandle zh, YAZ_EXPORT int zebra_admin_import_end (ZebraHandle zh); -int zebra_admin_exchange_record (ZebraHandle zh, +YAZ_EXPORT int zebra_admin_exchange_record (ZebraHandle zh, const char *rec_buf, size_t rec_len, const char *recid_buf, size_t recid_len, int action); -int zebra_begin_trans (ZebraHandle zh, int rw); -int zebra_end_trans (ZebraHandle zh); -int zebra_end_transaction (ZebraHandle zh, ZebraTransactionStatus *stat); +YAZ_EXPORT int zebra_begin_trans (ZebraHandle zh, int rw); +YAZ_EXPORT int zebra_end_trans (ZebraHandle zh); +YAZ_EXPORT int zebra_end_transaction (ZebraHandle zh, ZebraTransactionStatus *stat); -int zebra_commit (ZebraHandle zh); -int zebra_clean (ZebraHandle zh); +YAZ_EXPORT int zebra_commit (ZebraHandle zh); +YAZ_EXPORT int zebra_clean (ZebraHandle zh); -int zebra_init (ZebraHandle zh); -int zebra_compact (ZebraHandle zh); -int zebra_repository_update (ZebraHandle zh, const char *path); -int zebra_repository_delete (ZebraHandle zh, const char *path); -int zebra_repository_show (ZebraHandle zh, const char *path); +YAZ_EXPORT int zebra_init (ZebraHandle zh); +YAZ_EXPORT int zebra_compact (ZebraHandle zh); +YAZ_EXPORT int zebra_repository_update (ZebraHandle zh, const char *path); +YAZ_EXPORT int zebra_repository_delete (ZebraHandle zh, const char *path); +YAZ_EXPORT int zebra_repository_show (ZebraHandle zh, const char *path); -int zebra_add_record (ZebraHandle zh, const char *buf, int buf_size); +YAZ_EXPORT int zebra_add_record (ZebraHandle zh, const char *buf, int buf_size); -int zebra_insert_record (ZebraHandle zh, +YAZ_EXPORT int zebra_insert_record (ZebraHandle zh, const char *recordType, int *sysno, const char *match, const char *fname, const char *buf, int buf_size, int force_update); -int zebra_update_record (ZebraHandle zh, +YAZ_EXPORT int zebra_update_record (ZebraHandle zh, const char *recordType, int* sysno, const char *match, const char *fname, const char *buf, int buf_size, int force_update); -int zebra_delete_record (ZebraHandle zh, +YAZ_EXPORT int zebra_delete_record (ZebraHandle zh, const char *recordType, int *sysno, const char *match, const char *fname, const char *buf, int buf_size, -- 1.7.10.4