diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-23 07:34:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-23 07:34:51 +0000 |
commit | 6369617c93f57ee8707d0294aeb2c980ee816416 (patch) | |
tree | a5e63231ae5592812e8f71d6901b4c89df01c6e7 /libstore/store.h | |
parent | 00c98cb10468874aa9ccaba79c47f89f46dc51e4 (diff) |
2001-10-14 Roland McGrath <roland@frob.com>
* url.c: New file.
(store_url_open): New function.
(store_url_open_class): New const variable.
* store.h: Declare them.
* std.c (store_std_classes): Add &store_url_open_class to the list,
move &store_nbd_class after it.
Diffstat (limited to 'libstore/store.h')
-rw-r--r-- | libstore/store.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libstore/store.h b/libstore/store.h index a8ff49fe..0f13f96f 100644 --- a/libstore/store.h +++ b/libstore/store.h @@ -421,6 +421,13 @@ error_t store_typed_open (const char *name, int flags, const struct store_class *const *classes, struct store **store); +/* Similar to store_typed_open, but NAME must be in URL format, + i.e. a class name followed by a ':' and any type-specific name. + A leading ':' or no ':' at all is invalid syntax. */ +error_t store_url_open (const char *name, int flags, + const struct store_class *const *classes, + struct store **store); + /* Return a new store in STORE that interleaves all the stores in STRIPES (NUM_STRIPES of them) every INTERLEAVE bytes; INTERLEAVE must be an integer multiple of each stripe's block size. The stores in STRIPES are @@ -526,6 +533,7 @@ extern const struct store_class store_copy_class; extern const struct store_class store_gunzip_class; extern const struct store_class store_bunzip2_class; extern const struct store_class store_typed_open_class; +extern const struct store_class store_url_open_class; /* The following are not included in STORE_STD_CLASSES. */ extern const struct store_class store_mvol_class; |