From: Arnaud Giersch Date: Wed, 16 Mar 2022 22:04:43 +0000 (+0100) Subject: Provide File::open with 3 arguments. X-Git-Tag: v3.31~72 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/877c38ede51d3ee50e5cfc525f6467f1e09c2031 Provide File::open with 3 arguments. --- diff --git a/include/simgrid/plugins/file_system.h b/include/simgrid/plugins/file_system.h index 78a09240fe..5ecde650d0 100644 --- a/include/simgrid/plugins/file_system.h +++ b/include/simgrid/plugins/file_system.h @@ -109,6 +109,7 @@ public: ~File(); static File* open(const std::string& fullpath, void* userdata); + static File* open(const std::string& fullpath, const_sg_host_t host, void* userdata); void close() { delete this; }; /** Retrieves the path to the file */ diff --git a/src/plugins/file_system/s4u_FileSystem.cpp b/src/plugins/file_system/s4u_FileSystem.cpp index 75686e578f..20714da473 100644 --- a/src/plugins/file_system/s4u_FileSystem.cpp +++ b/src/plugins/file_system/s4u_FileSystem.cpp @@ -116,6 +116,11 @@ File* File::open(const std::string& fullpath, void* userdata) return new File(fullpath, userdata); } +File* File::open(const std::string& fullpath, const_sg_host_t host, void* userdata) +{ + return new File(fullpath, host, userdata); +} + void File::dump() const { XBT_INFO("File Descriptor information:\n"