1.1 --- a/libfsserver/include/fsserver/file_opening.h Fri Jan 14 01:10:35 2022 +0100
1.2 +++ b/libfsserver/include/fsserver/file_opening.h Thu Jan 27 23:45:17 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Generic support for opening files.
1.6 *
1.7 - * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -37,6 +37,8 @@
1.13
1.14 virtual long get_fileid(const char *path, flags_t flags, fileid_t *fileid) = 0;
1.15
1.16 + virtual long get_parent(const char *path, fileid_t *fileid);
1.17 +
1.18 virtual long make_accessor(const char *path, flags_t flags, fileid_t fileid,
1.19 Accessor **accessor) = 0;
1.20
1.21 @@ -46,6 +48,9 @@
1.22
1.23 virtual long remove_object(const char *path, fileid_t fileid) = 0;
1.24
1.25 + virtual long rename_object(const char *source, fileid_t source_fileid,
1.26 + const char *target) = 0;
1.27 +
1.28 virtual long unlink_object(const char *path, fileid_t fileid) = 0;
1.29 };
1.30