From 6369617c93f57ee8707d0294aeb2c980ee816416 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 23 Dec 2001 07:34:51 +0000 Subject: 2001-10-14 Roland McGrath * 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. --- libstore/store.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libstore/store.h') 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; -- cgit v1.2.3