This commit is contained in:
2024-10-09 13:41:32 -05:00
parent 3fa16fd846
commit d20ed07066
7 changed files with 48 additions and 17 deletions

View File

@ -34,15 +34,15 @@ protected:
protected:
struct compat_open_info {
std::size_t count = 0u;
std::string client_id = "";
std::size_t count{0U};
std::string client_id;
std::string path;
};
struct open_info {
std::size_t count = 0u;
std::string client_id = "";
PVOID directory_buffer = nullptr;
std::size_t count{0U};
std::string client_id;
PVOID directory_buffer{nullptr};
std::string path;
};

View File

@ -172,10 +172,16 @@ public:
get_handles() const -> std::vector<std::uint64_t> override;
[[nodiscard]] auto
get_open_data() const -> std::map<std::uint64_t, open_file_data> override;
get_open_data() -> std::map<std::uint64_t, open_file_data> & override;
[[nodiscard]] auto get_open_data() const
-> const std::map<std::uint64_t, open_file_data> & override;
[[nodiscard]] auto
get_open_data(std::uint64_t handle) const -> open_file_data override;
get_open_data(std::uint64_t handle) -> open_file_data & override;
[[nodiscard]] auto get_open_data(std::uint64_t handle) const
-> const open_file_data & override;
[[nodiscard]] auto get_open_file_count() const -> std::size_t override;

View File

@ -41,10 +41,16 @@ public:
[[nodiscard]] virtual auto get_filesystem_item() const -> filesystem_item = 0;
[[nodiscard]] virtual auto
get_open_data() const -> std::map<std::uint64_t, open_file_data> = 0;
get_open_data() -> std::map<std::uint64_t, open_file_data> & = 0;
[[nodiscard]] virtual auto
get_open_data(std::uint64_t handle) const -> open_file_data = 0;
get_open_data() const -> const std::map<std::uint64_t, open_file_data> & = 0;
[[nodiscard]] virtual auto
get_open_data(std::uint64_t handle) -> open_file_data & = 0;
[[nodiscard]] virtual auto
get_open_data(std::uint64_t handle) const -> const open_file_data & = 0;
[[nodiscard]] virtual auto get_open_file_count() const -> std::size_t = 0;

View File

@ -150,7 +150,7 @@ enum class provider_type : std::size_t {
#if defined(_WIN32)
struct open_file_data final {
void *directory_buffer{};
PVOID directory_buffer{nullptr};
};
#else
using open_file_data = int;