summaryrefslogtreecommitdiff
path: root/libstore/store.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-10-01 01:04:57 +0000
committerRoland McGrath <roland@gnu.org>2001-10-01 01:04:57 +0000
commitaf3199bd62a9f635e081af23a834bc47fce83bc6 (patch)
treecf9310d725f132436c2ed3777c86c1497cffd67e /libstore/store.h
parentdd033a2bbced5e561c0e692bf3da2a43bad435ae (diff)
2001-09-30 Roland McGrath <roland@frob.com>
* memobj.c: New file. * Makefile (SRCS): Add it. * store.h (store_memobj_class, store_memobj_create): Declare them.
Diffstat (limited to 'libstore/store.h')
-rw-r--r--libstore/store.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libstore/store.h b/libstore/store.h
index d7f687d3..a8ff49fe 100644
--- a/libstore/store.h
+++ b/libstore/store.h
@@ -382,6 +382,13 @@ error_t _store_task_create (task_t task, int flags, size_t block_size,
corresponding store in STORE. */
error_t store_task_open (const char *name, int flags, struct store **store);
+/* Return a new store in STORE referring to the memory object MEMOBJ.
+ Consumes the send right MEMOBJ. */
+error_t store_memobj_create (memory_object_t memobj, int flags,
+ size_t block_size,
+ const struct store_run *runs, size_t num_runs,
+ struct store **store);
+
/* Open the network block device NAME (parsed as "HOSTNAME:PORT[/BLOCKSIZE]"),
and return the corresponding store in STORE. This opens a socket and
initial connection handshake, which determine the size of the device,
@@ -509,6 +516,7 @@ extern const struct store_class store_part_class;
extern const struct store_class store_file_class;
extern const struct store_class store_task_class;
extern const struct store_class store_nbd_class;
+extern const struct store_class store_memobj_class;
extern const struct store_class store_zero_class;
extern const struct store_class store_ileave_class;
extern const struct store_class store_concat_class;