+struct BFiles_struct {
+ MFile_area commit_area;
+ MFile_area_struct *register_area;
+ char *lockDir;
+};
+
+BFiles bfs_create (const char *spec)
+{
+ BFiles bfs = xmalloc (sizeof(*bfs));
+ bfs->commit_area = NULL;
+ bfs->register_area = mf_init("register", spec);
+ bfs->lockDir = NULL;
+ return bfs;
+}
+
+void bfs_destroy (BFiles bfs)
+{
+ mf_destroy (bfs->commit_area);
+ mf_destroy (bfs->register_area);
+ xfree (bfs);
+}