X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fbfile.h;h=018a8d6f4cf6c3172c70fee8cff7148cc6849925;hb=5e7516d00451ada59a311fad05e8e3959242cdc7;hp=af8c209ef2462cb2cababe20ffd45d2b5488e52d;hpb=bceca936710690858ea162e7bc22de819f0e280f;p=idzebra-moved-to-github.git diff --git a/include/bfile.h b/include/bfile.h index af8c209..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.17 1999-05-12 13:08:06 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); @@ -68,6 +66,9 @@ void bf_commitExec (BFiles bfs); /* bf_commitClean: cleans commit files, etc */ void bf_commitClean (BFiles bfs, const char *spec); +/* bf_reset: delete register and shadow completely */ +void bf_reset (BFiles bfs); + #ifdef __cplusplus } #endif