summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-22 00:16:12 +0000
committerMiles Bader <miles@gnu.org>1996-05-22 00:16:12 +0000
commit960e3a65f2689cfd9cb0090a645481c771259cb7 (patch)
tree407836ebc169b2c3ddffaf48d1b91d0428e83766 /libstore
parent04d1888ff4b37e9ecfe2f72bcc354b9025e399bf (diff)
(_make_store): CLASS param removed, METHS param renamed CLASS; all callers
changed. FLAGS param added. (store_free): Change uses of METHS field to CLASS.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/make.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libstore/make.c b/libstore/make.c
index d13f2516..6f5e557a 100644
--- a/libstore/make.c
+++ b/libstore/make.c
@@ -24,11 +24,11 @@
#include "store.h"
-/* Allocate a new store structure of class CLASS, with meths METHS, and the
- various other fields initialized to the given parameters. */
+/* Allocate a new store structure with meths METHS, and the various other
+ fields initialized to the given parameters. */
struct store *
-_make_store (enum file_storage_class class, struct store_meths *meths,
- mach_port_t port, size_t block_size,
+_make_store (struct store_class *class,
+ mach_port_t port, int flags, size_t block_size,
const struct store_run *runs, size_t num_runs, off_t end)
{
if (block_size & (block_size - 1))
@@ -44,6 +44,7 @@ _make_store (enum file_storage_class class, struct store_meths *meths,
store->num_runs = 0;
store->wrap_src = 0;
store->wrap_dst = 0;
+ store->flags = flags;
store->end = end;
store->block_size = block_size;
store->source = MACH_PORT_NULL;
@@ -57,7 +58,6 @@ _make_store (enum file_storage_class class, struct store_meths *meths,
store->num_children = 0;
store->class = class;
- store->meths = meths;
store_set_runs (store, runs, num_runs); /* Calls _store_derive() */
}
@@ -70,8 +70,8 @@ store_free (struct store *store)
{
int k;
- if (store->meths->cleanup)
- (*store->meths->cleanup) (store);
+ if (store->class->cleanup)
+ (*store->class->cleanup) (store);
for (k = 0; k < store->num_children; k++)
store_free (store->children[k]);