1.1 --- a/libfsserver/include/fsserver/file_object_registry.h Sat Oct 16 22:09:18 2021 +0200
1.2 +++ b/libfsserver/include/fsserver/file_object_registry.h Sat Oct 16 22:11:11 2021 +0200
1.3 @@ -49,6 +49,16 @@
1.4 flags_t flags, fileid_t fileid,
1.5 FileProvider **file_provider);
1.6
1.7 + /* Resource initialisation methods. */
1.8 +
1.9 + long get_directory(FileOpening *opening, const char *path, flags_t flags,
1.10 + fileid_t fileid, offset_t *size, object_flags_t *object_flags,
1.11 + Resource **resource);
1.12 +
1.13 + long get_file(FileOpening *opening, const char *path, flags_t flags,
1.14 + fileid_t fileid, offset_t *size, object_flags_t *object_flags,
1.15 + Resource **resource);
1.16 +
1.17 public:
1.18 explicit FileObjectRegistry(Pages *pages);
1.19
1.20 @@ -59,11 +69,9 @@
1.21
1.22 /* Resource initialisation methods. */
1.23
1.24 - long get_directory(FileOpening *opening, const char *path, flags_t flags,
1.25 - fileid_t fileid, Resource **resource);
1.26 -
1.27 - long get_pager(FileOpening *opening, const char *path, flags_t flags,
1.28 - fileid_t fileid, Pager **pager);
1.29 + long get_resource(FileOpening *opening, const char *path, flags_t flags,
1.30 + offset_t *size, object_flags_t *object_flags,
1.31 + Resource **resource);
1.32 };
1.33
1.34 // vim: tabstop=4 expandtab shiftwidth=4