X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=7a78de2ff8f53f7309b71f5f559e23ea4f898c4c;hb=886253fb90810e512cacf4f02694645ead7a22e0;hp=6064462455bd791074a3d55d8b8df95dddf0080e;hpb=7e75317bed8eecabcb57e59b16093a32238738e2;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index 6064462..7a78de2 100644 --- a/index/index.h +++ b/index/index.h @@ -2,7 +2,7 @@ * Copyright (C) 1995-2002, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * $Id: index.h,v 1.73 2002-02-20 17:30:01 adam Exp $ + * $Id: index.h,v 1.74 2002-03-21 10:25:42 adam Exp $ */ #ifndef INDEX_H @@ -144,13 +144,15 @@ int zebraIndexWait (ZebraHandle zh, int commitPhase); #define FNAME_TOUCH_TIME "zebraidx.time" typedef struct zebra_lock_info *ZebraLockHandle; -ZebraLockHandle zebra_lock_create(const char *file, int excl_flag); +ZebraLockHandle zebra_lock_create(const char *dir, + const char *file, int excl_flag); void zebra_lock_destroy (ZebraLockHandle h); int zebra_lock (ZebraLockHandle h); int zebra_lock_nb (ZebraLockHandle h); int zebra_unlock (ZebraLockHandle h); int zebra_lock_fd (ZebraLockHandle h); void zebra_lock_prefix (Res res, char *dst); +char *zebra_mk_fname (const char *dir, const char *name); int zebra_lock_w (ZebraLockHandle h); int zebra_lock_r (ZebraLockHandle h);