key_print_it
[idzebra-moved-to-github.git] / include / bfile.h
index af8c209..018a8d6 100644 (file)
@@ -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