fix
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user