X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fbfile.h;h=018a8d6f4cf6c3172c70fee8cff7148cc6849925;hb=a20e59c5087fb92c419f2330c786367f9ce8ccd2;hp=66b935e1a30812f4dfa63922cce26d824bebd35e;hpb=45a6ad99e5210bc4ef39bf00d81aee8f0fb26168;p=idzebra-moved-to-github.git diff --git a/include/bfile.h b/include/bfile.h index 66b935e..018a8d6 100644 --- a/include/bfile.h +++ b/include/bfile.h @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: bfile.h,v 1.18 1999-12-08 15:03:11 adam Exp $ + * $Id: bfile.h,v 1.20 2002-04-04 14:14:13 adam Exp $ */ #ifndef BFILE_H @@ -19,12 +19,13 @@ extern "C" { typedef struct BFiles_struct *BFiles; -BFiles bfs_create (const char *spec); +BFiles bfs_create (const char *spec, const char *base); void bfs_destroy (BFiles bfiles); typedef struct BFile_struct { MFile mf; + Zebra_lock_rdwr rdwr_lock; struct CFile_struct *cf; } *BFile, BFile_struct; @@ -56,9 +57,6 @@ int bf_write (BFile bf, int no, int offset, int nbytes, const void *buf); /* bf_cache: enables bfile cache if spec is not NULL */ void bf_cache (BFiles bfs, const char *spec); -/* bf_lockDir: specifies locking directory for the cache system */ -void bf_lockDir (BFiles bfs, const char *lockDir); - /* bf_commitExists: returns 1 if commit is pending; 0 otherwise */ int bf_commitExists (BFiles bfs);