From e1bd3bb8ecc824e9e54c2cec872a07ce57550333 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 9 Oct 2024 11:29:27 -0500 Subject: [PATCH] refactor --- repertory/librepertory/include/app_config.hpp | 6 +- .../include/comm/curl/curl_comm.hpp | 6 +- .../include/comm/curl/multi_request.hpp | 6 +- .../comm/curl/requests/http_delete.hpp | 12 +- .../include/comm/curl/requests/http_get.hpp | 12 +- .../include/comm/curl/requests/http_head.hpp | 12 +- .../include/comm/curl/requests/http_post.hpp | 11 +- .../comm/curl/requests/http_put_file.hpp | 10 +- .../comm/curl/requests/http_request_base.hpp | 6 +- .../librepertory/include/comm/i_http_comm.hpp | 31 ++- .../include/comm/packet/client_pool.hpp | 6 +- .../include/comm/packet/packet.hpp | 6 +- .../include/comm/packet/packet_client.hpp | 6 +- .../include/comm/packet/packet_server.hpp | 6 +- repertory/librepertory/include/common.hpp | 6 +- .../include/drives/directory_cache.hpp | 7 +- .../include/drives/directory_iterator.hpp | 6 +- .../librepertory/include/drives/eviction.hpp | 10 +- .../include/drives/fuse/events.hpp | 6 +- .../include/drives/fuse/fuse_base.hpp | 6 +- .../include/drives/fuse/fuse_drive.hpp | 6 +- .../include/drives/fuse/fuse_drive_base.hpp | 6 +- .../include/drives/fuse/i_fuse_drive.hpp | 6 +- .../fuse/remotefuse/i_remote_instance.hpp | 186 +++++++++--------- .../drives/fuse/remotefuse/remote_client.hpp | 138 ++++++------- .../fuse/remotefuse/remote_fuse_drive.hpp | 6 +- .../drives/fuse/remotefuse/remote_server.hpp | 6 +- .../include/drives/remote/i_remote_json.hpp | 17 +- .../drives/remote/remote_open_file_table.hpp | 6 +- .../drives/remote/remote_server_base.hpp | 6 +- .../include/drives/winfsp/i_winfsp_drive.hpp | 6 +- .../winfsp/remotewinfsp/i_remote_instance.hpp | 105 +++++----- .../winfsp/remotewinfsp/remote_client.hpp | 6 +- .../winfsp/remotewinfsp/remote_server.hpp | 6 +- .../remotewinfsp/remote_winfsp_drive.hpp | 6 +- .../include/drives/winfsp/winfsp_drive.hpp | 6 +- .../events/consumers/console_consumer.hpp | 6 +- .../events/consumers/logging_consumer.hpp | 6 +- .../librepertory/include/events/event.hpp | 6 +- .../include/events/event_system.hpp | 6 +- .../librepertory/include/events/events.hpp | 6 +- .../include/events/t_event_system.hpp | 6 +- .../include/file_manager/events.hpp | 6 +- .../include/file_manager/file_manager.hpp | 6 +- .../include/file_manager/i_file_manager.hpp | 23 ++- .../include/file_manager/i_open_file.hpp | 34 ++-- .../include/file_manager/i_upload_manager.hpp | 6 +- .../include/platform/platform.hpp | 6 +- .../include/platform/unix_platform.hpp | 6 +- .../include/platform/win32_platform.hpp | 6 +- .../include/providers/base_provider.hpp | 6 +- .../providers/encrypt/encrypt_provider.hpp | 6 +- .../include/providers/i_provider.hpp | 105 +++++----- .../include/providers/meta_db.hpp | 6 +- .../include/providers/provider.hpp | 12 +- .../include/providers/s3/s3_provider.hpp | 6 +- .../include/providers/sia/sia_provider.hpp | 6 +- .../include/rpc/client/client.hpp | 20 +- .../include/rpc/server/full_server.hpp | 6 +- .../include/rpc/server/server.hpp | 6 +- .../librepertory/include/types/remote.hpp | 6 +- .../librepertory/include/types/repertory.hpp | 6 +- repertory/librepertory/include/types/rpc.hpp | 6 +- repertory/librepertory/include/types/s3.hpp | 6 +- .../include/types/startup_exception.hpp | 6 +- .../librepertory/include/utils/cli_utils.hpp | 6 +- .../include/utils/error_utils.hpp | 6 +- .../librepertory/include/utils/file_utils.hpp | 6 +- .../librepertory/include/utils/polling.hpp | 6 +- .../utils/single_thread_service_base.hpp | 6 +- .../librepertory/include/utils/throttle.hpp | 6 +- .../librepertory/include/utils/timeout.hpp | 6 +- .../include/utils/unix/unix_utils.hpp | 6 +- .../librepertory/include/utils/utils.hpp | 6 +- .../include/utils/windows/windows_utils.hpp | 6 +- repertory/repertory/include/cli/actions.hpp | 6 +- .../repertory/include/cli/check_version.hpp | 6 +- .../repertory/include/cli/display_config.hpp | 6 +- .../include/cli/drive_information.hpp | 6 +- repertory/repertory/include/cli/get.hpp | 6 +- .../include/cli/get_directory_items.hpp | 6 +- .../include/cli/get_pinned_files.hpp | 6 +- .../repertory/include/cli/get_version.hpp | 6 +- repertory/repertory/include/cli/help.hpp | 6 +- repertory/repertory/include/cli/mount.hpp | 6 +- .../repertory/include/cli/open_files.hpp | 17 +- repertory/repertory/include/cli/pin_file.hpp | 6 +- .../repertory/include/cli/pinned_status.hpp | 6 +- repertory/repertory/include/cli/set.hpp | 6 +- repertory/repertory/include/cli/status.hpp | 6 +- repertory/repertory/include/cli/unmount.hpp | 6 +- .../repertory/include/cli/unpin_file.hpp | 6 +- 92 files changed, 588 insertions(+), 618 deletions(-) diff --git a/repertory/librepertory/include/app_config.hpp b/repertory/librepertory/include/app_config.hpp index 3fba663e..eb44ca92 100644 --- a/repertory/librepertory/include/app_config.hpp +++ b/repertory/librepertory/include/app_config.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_APP_CONFIG_HPP_ -#define INCLUDE_APP_CONFIG_HPP_ +#ifndef REPERTORY_INCLUDE_APP_CONFIG_HPP_ +#define REPERTORY_INCLUDE_APP_CONFIG_HPP_ #include "events/event_system.hpp" #include "events/events.hpp" @@ -455,4 +455,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_APP_CONFIG_HPP_ +#endif // REPERTORY_INCLUDE_APP_CONFIG_HPP_ diff --git a/repertory/librepertory/include/comm/curl/curl_comm.hpp b/repertory/librepertory/include/comm/curl/curl_comm.hpp index f655033b..46c409c8 100644 --- a/repertory/librepertory/include/comm/curl/curl_comm.hpp +++ b/repertory/librepertory/include/comm/curl/curl_comm.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_COMM_HPP_ -#define INCLUDE_COMM_CURL_CURL_COMM_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_COMM_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_COMM_HPP_ #include "comm/curl/multi_request.hpp" #include "comm/i_http_comm.hpp" @@ -238,4 +238,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_COMM_CURL_CURL_COMM_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_COMM_HPP_ diff --git a/repertory/librepertory/include/comm/curl/multi_request.hpp b/repertory/librepertory/include/comm/curl/multi_request.hpp index ba8a7480..75c2d8bc 100644 --- a/repertory/librepertory/include/comm/curl/multi_request.hpp +++ b/repertory/librepertory/include/comm/curl/multi_request.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ -#define INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ #include "types/repertory.hpp" @@ -41,4 +41,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_MULTI_REQUEST_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_delete.hpp b/repertory/librepertory/include/comm/curl/requests/http_delete.hpp index 9ec8086e..62b26f64 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_delete.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_delete.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ #include "comm/curl/requests/http_request_base.hpp" @@ -28,13 +28,13 @@ namespace repertory::curl::requests { struct http_delete final : http_request_base { ~http_delete() override = default; - [[nodiscard]] auto set_method(CURL *curl, - stop_type & /* stop_requested */) const - -> bool override { + [[nodiscard]] auto + set_method(CURL *curl, + stop_type & /* stop_requested */) const -> bool override { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE"); return true; } }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_DELETE_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_get.hpp b/repertory/librepertory/include/comm/curl/requests/http_get.hpp index 7442d433..9708f34d 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_get.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_get.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ #include "comm/curl/requests/http_request_base.hpp" @@ -33,13 +33,13 @@ struct http_get final : http_request_base { auto operator=(http_get &&) -> http_get & = default; ~http_get() override = default; - [[nodiscard]] auto set_method(CURL *curl, - stop_type & /*stop_requested*/) const - -> bool override { + [[nodiscard]] auto + set_method(CURL *curl, + stop_type & /*stop_requested*/) const -> bool override { curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); return true; } }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_GET_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_head.hpp b/repertory/librepertory/include/comm/curl/requests/http_head.hpp index d170dca9..6c51de30 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_head.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_head.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ #include "comm/curl/requests/http_request_base.hpp" @@ -28,9 +28,9 @@ namespace repertory::curl::requests { struct http_head final : http_request_base { ~http_head() override = default; - [[nodiscard]] auto set_method(CURL *curl, - stop_type & /* stop_requested */) const - -> bool override { + [[nodiscard]] auto + set_method(CURL *curl, + stop_type & /* stop_requested */) const -> bool override { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "HEAD"); curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); return true; @@ -38,4 +38,4 @@ struct http_head final : http_request_base { }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_HEAD_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_post.hpp b/repertory/librepertory/include/comm/curl/requests/http_post.hpp index eae62148..4aaff448 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_post.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_post.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ #include "comm/curl/requests/http_request_base.hpp" @@ -36,9 +36,8 @@ struct http_post final : http_request_base { std::optional json; - [[nodiscard]] auto set_method(CURL *curl, - stop_type & /*stop_requested*/) const - -> bool override; + [[nodiscard]] auto + set_method(CURL *curl, stop_type & /*stop_requested*/) const -> bool override; private: mutable curl_slist *headers{nullptr}; @@ -46,4 +45,4 @@ private: }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_POST_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_put_file.hpp b/repertory/librepertory/include/comm/curl/requests/http_put_file.hpp index 78b492c9..810f132a 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_put_file.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_put_file.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ #include "comm/curl/requests/http_request_base.hpp" #include "utils/encrypting_reader.hpp" @@ -39,12 +39,12 @@ struct http_put_file final : http_request_base { std::shared_ptr reader; std::string source_path; - [[nodiscard]] auto set_method(CURL *curl, stop_type &stop_requested) const - -> bool override; + [[nodiscard]] auto + set_method(CURL *curl, stop_type &stop_requested) const -> bool override; private: mutable std::shared_ptr read_info{}; }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_PUT_FILE_HPP_ diff --git a/repertory/librepertory/include/comm/curl/requests/http_request_base.hpp b/repertory/librepertory/include/comm/curl/requests/http_request_base.hpp index 347cd89c..1dbbe6cf 100644 --- a/repertory/librepertory/include/comm/curl/requests/http_request_base.hpp +++ b/repertory/librepertory/include/comm/curl/requests/http_request_base.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ -#define INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ +#define REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ #include "types/repertory.hpp" #include "utils/file.hpp" @@ -79,4 +79,4 @@ struct http_request_base { }; } // namespace repertory::curl::requests -#endif // INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ +#endif // REPERTORY_INCLUDE_COMM_CURL_CURL_REQUESTS_HTTP_REQUEST_BASE_HPP_ diff --git a/repertory/librepertory/include/comm/i_http_comm.hpp b/repertory/librepertory/include/comm/i_http_comm.hpp index e2433e3f..f3b9b643 100644 --- a/repertory/librepertory/include/comm/i_http_comm.hpp +++ b/repertory/librepertory/include/comm/i_http_comm.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_I_HTTP_COMM_HPP_ -#define INCLUDE_COMM_I_HTTP_COMM_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_I_HTTP_COMM_HPP_ +#define REPERTORY_INCLUDE_COMM_I_HTTP_COMM_HPP_ #include "comm/curl/requests/http_delete.hpp" #include "comm/curl/requests/http_get.hpp" @@ -40,26 +40,23 @@ public: make_request(const curl::requests::http_delete &del, long &response_code, stop_type &stop_requested) const -> bool = 0; - [[nodiscard]] virtual auto make_request(const curl::requests::http_get &get, - long &response_code, - stop_type &stop_requested) const - -> bool = 0; + [[nodiscard]] virtual auto + make_request(const curl::requests::http_get &get, long &response_code, + stop_type &stop_requested) const -> bool = 0; - [[nodiscard]] virtual auto make_request(const curl::requests::http_head &head, - long &response_code, - stop_type &stop_requested) const - -> bool = 0; + [[nodiscard]] virtual auto + make_request(const curl::requests::http_head &head, long &response_code, + stop_type &stop_requested) const -> bool = 0; - [[nodiscard]] virtual auto make_request(const curl::requests::http_post &post, - long &response_code, - stop_type &stop_requested) const - -> bool = 0; + [[nodiscard]] virtual auto + make_request(const curl::requests::http_post &post, long &response_code, + stop_type &stop_requested) const -> bool = 0; [[nodiscard]] virtual auto make_request(const curl::requests::http_put_file &put_file, - long &response_code, stop_type &stop_requested) const - -> bool = 0; + long &response_code, + stop_type &stop_requested) const -> bool = 0; }; } // namespace repertory -#endif // INCLUDE_COMM_I_HTTP_COMM_HPP_ +#endif // REPERTORY_INCLUDE_COMM_I_HTTP_COMM_HPP_ diff --git a/repertory/librepertory/include/comm/packet/client_pool.hpp b/repertory/librepertory/include/comm/packet/client_pool.hpp index 522fbe65..f64bd52b 100644 --- a/repertory/librepertory/include/comm/packet/client_pool.hpp +++ b/repertory/librepertory/include/comm/packet/client_pool.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ -#define INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ +#define REPERTORY_INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ #include "comm/packet/packet.hpp" #include "types/repertory.hpp" @@ -107,4 +107,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ +#endif // REPERTORY_INCLUDE_COMM_PACKET_CLIENT_POOL_HPP_ diff --git a/repertory/librepertory/include/comm/packet/packet.hpp b/repertory/librepertory/include/comm/packet/packet.hpp index 71036d96..2d9ac420 100644 --- a/repertory/librepertory/include/comm/packet/packet.hpp +++ b/repertory/librepertory/include/comm/packet/packet.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_PACKET_PACKET_HPP_ -#define INCLUDE_COMM_PACKET_PACKET_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_PACKET_PACKET_HPP_ +#define REPERTORY_INCLUDE_COMM_PACKET_PACKET_HPP_ #include "types/remote.hpp" #include "types/repertory.hpp" @@ -230,4 +230,4 @@ public: using packet = packet; } // namespace repertory -#endif // INCLUDE_COMM_PACKET_PACKET_HPP_ +#endif // REPERTORY_INCLUDE_COMM_PACKET_PACKET_HPP_ diff --git a/repertory/librepertory/include/comm/packet/packet_client.hpp b/repertory/librepertory/include/comm/packet/packet_client.hpp index 2c555cdc..99949de2 100644 --- a/repertory/librepertory/include/comm/packet/packet_client.hpp +++ b/repertory/librepertory/include/comm/packet/packet_client.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ -#define INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ +#define REPERTORY_INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ #include "comm/packet/packet.hpp" @@ -93,4 +93,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ +#endif // REPERTORY_INCLUDE_COMM_PACKET_PACKET_CLIENT_HPP_ diff --git a/repertory/librepertory/include/comm/packet/packet_server.hpp b/repertory/librepertory/include/comm/packet/packet_server.hpp index 04e9b988..2e916f5e 100644 --- a/repertory/librepertory/include/comm/packet/packet_server.hpp +++ b/repertory/librepertory/include/comm/packet/packet_server.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ -#define INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ +#ifndef REPERTORY_INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ +#define REPERTORY_INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ #include "comm/packet/client_pool.hpp" #include "utils/common.hpp" @@ -95,4 +95,4 @@ private: }; } // namespace repertory -#endif // INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ +#endif // REPERTORY_INCLUDE_COMM_PACKET_PACKET_SERVER_HPP_ diff --git a/repertory/librepertory/include/common.hpp b/repertory/librepertory/include/common.hpp index 5ac2c3e8..0cb5f1f3 100644 --- a/repertory/librepertory/include/common.hpp +++ b/repertory/librepertory/include/common.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_COMMON_HPP_ -#define INCLUDE_COMMON_HPP_ +#ifndef REPERTORY_INCLUDE_COMMON_HPP_ +#define REPERTORY_INCLUDE_COMMON_HPP_ #if defined(__GNUC__) // clang-format off @@ -307,4 +307,4 @@ public: \ virtual ~name() = default #endif // __cplusplus -#endif // INCLUDE_COMMON_HPP_ +#endif // REPERTORY_INCLUDE_COMMON_HPP_ diff --git a/repertory/librepertory/include/drives/directory_cache.hpp b/repertory/librepertory/include/drives/directory_cache.hpp index 9913fe5e..ba2d88bd 100644 --- a/repertory/librepertory/include/drives/directory_cache.hpp +++ b/repertory/librepertory/include/drives/directory_cache.hpp @@ -19,11 +19,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ -#define INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ #include "utils/single_thread_service_base.hpp" -#include namespace repertory { class directory_iterator; @@ -74,4 +73,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_DIRECTORY_CACHE_HPP_ diff --git a/repertory/librepertory/include/drives/directory_iterator.hpp b/repertory/librepertory/include/drives/directory_iterator.hpp index b2491971..f03e8f76 100644 --- a/repertory/librepertory/include/drives/directory_iterator.hpp +++ b/repertory/librepertory/include/drives/directory_iterator.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ -#define INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ +#define REPERTORY_INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ #include "types/remote.hpp" #include "types/repertory.hpp" @@ -78,4 +78,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_DIRECTORY_ITERATOR_HPP_ diff --git a/repertory/librepertory/include/drives/eviction.hpp b/repertory/librepertory/include/drives/eviction.hpp index 5bd0e69d..b4764c02 100644 --- a/repertory/librepertory/include/drives/eviction.hpp +++ b/repertory/librepertory/include/drives/eviction.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_EVICTION_HPP_ -#define INCLUDE_DRIVES_EVICTION_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_EVICTION_HPP_ +#define REPERTORY_INCLUDE_DRIVES_EVICTION_HPP_ #include "utils/single_thread_service_base.hpp" @@ -45,8 +45,8 @@ private: i_file_manager &fm_; private: - [[nodiscard]] auto check_minimum_requirements(const std::string &file_path) - -> bool; + [[nodiscard]] auto + check_minimum_requirements(const std::string &file_path) -> bool; [[nodiscard]] auto get_filtered_cached_files() -> std::deque; @@ -55,4 +55,4 @@ protected: }; } // namespace repertory -#endif // INCLUDE_DRIVES_EVICTION_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_EVICTION_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/events.hpp b/repertory/librepertory/include/drives/fuse/events.hpp index f64913bc..6faf6a1f 100644 --- a/repertory/librepertory/include/drives/fuse/events.hpp +++ b/repertory/librepertory/include/drives/fuse/events.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_EVENTS_HPP_ -#define INCLUDE_DRIVES_FUSE_EVENTS_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_EVENTS_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_EVENTS_HPP_ #include "events/event_system.hpp" @@ -38,4 +38,4 @@ E_SIMPLE1(fuse_args_parsed, info, true, // clang-format on } // namespace repertory -#endif // INCLUDE_DRIVES_FUSE_EVENTS_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_EVENTS_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/fuse_base.hpp b/repertory/librepertory/include/drives/fuse/fuse_base.hpp index 401e5160..013db924 100644 --- a/repertory/librepertory/include/drives/fuse/fuse_base.hpp +++ b/repertory/librepertory/include/drives/fuse/fuse_base.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ -#define INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ #if !defined(_WIN32) #include "events/event_system.hpp" @@ -604,4 +604,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_BASE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/fuse_drive.hpp b/repertory/librepertory/include/drives/fuse/fuse_drive.hpp index 011a711f..30a9ee0a 100644 --- a/repertory/librepertory/include/drives/fuse/fuse_drive.hpp +++ b/repertory/librepertory/include/drives/fuse/fuse_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ -#define INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ #if !defined(_WIN32) #include "drives/fuse/fuse_drive_base.hpp" @@ -323,4 +323,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/fuse_drive_base.hpp b/repertory/librepertory/include/drives/fuse/fuse_drive_base.hpp index 9e44c8eb..7c2641f9 100644 --- a/repertory/librepertory/include/drives/fuse/fuse_drive_base.hpp +++ b/repertory/librepertory/include/drives/fuse/fuse_drive_base.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ -#define INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ #if !defined(_WIN32) #include "drives/fuse/fuse_base.hpp" @@ -134,4 +134,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_FUSE_DRIVE_BASE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/i_fuse_drive.hpp b/repertory/librepertory/include/drives/fuse/i_fuse_drive.hpp index 6aafa00e..aeaee22a 100644 --- a/repertory/librepertory/include/drives/fuse/i_fuse_drive.hpp +++ b/repertory/librepertory/include/drives/fuse/i_fuse_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ -#define INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ #if !defined(_WIN32) #include "types/repertory.hpp" @@ -81,4 +81,4 @@ public: } // namespace repertory #endif -#endif // INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_I_FUSE_DRIVE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/remotefuse/i_remote_instance.hpp b/repertory/librepertory/include/drives/fuse/remotefuse/i_remote_instance.hpp index fcaa67f6..c85787ce 100644 --- a/repertory/librepertory/include/drives/fuse/remotefuse/i_remote_instance.hpp +++ b/repertory/librepertory/include/drives/fuse/remotefuse/i_remote_instance.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ -#define INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ #include "drives/remote/i_remote_json.hpp" #include "types/remote.hpp" @@ -30,26 +30,25 @@ class i_remote_instance : public virtual i_remote_json { INTERFACE_SETUP(i_remote_instance); public: - [[nodiscard]] virtual auto fuse_access(const char *path, - const std::int32_t &mask) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_access(const char *path, + const std::int32_t &mask) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_chflags(const char *path, std::uint32_t flags) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_chflags(const char *path, std::uint32_t flags) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_chmod(const char *path, - const remote::file_mode &mode) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_chmod(const char *path, + const remote::file_mode &mode) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_chown(const char *path, - const remote::user_id &uid, - const remote::group_id &gid) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_chown(const char *path, const remote::user_id &uid, + const remote::group_id &gid) -> packet::error_type = 0; [[nodiscard]] virtual auto fuse_create(const char *path, const remote::file_mode &mode, - const remote::open_flags &flags, remote::file_handle &handle) - -> packet::error_type = 0; + const remote::open_flags &flags, + remote::file_handle &handle) -> packet::error_type = 0; [[nodiscard]] virtual auto fuse_destroy() -> packet::error_type = 0; /*[[nodiscard]] virtual packet::error_type fuse_fallocate(const char *path, @@ -61,24 +60,21 @@ public: fuse_fgetattr(const char *path, remote::stat &r_stat, bool &directory, const remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_fsetattr_x(const char *path, - const remote::setattr_x &attr, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_fsetattr_x(const char *path, const remote::setattr_x &attr, + const remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_fsync(const char *path, - const std::int32_t &datasync, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_fsync(const char *path, const std::int32_t &datasync, + const remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_ftruncate(const char *path, - const remote::file_offset &size, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_ftruncate(const char *path, const remote::file_offset &size, + const remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_getattr(const char *path, - remote::stat &r_stat, bool &directory) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_getattr(const char *path, remote::stat &r_stat, + bool &directory) -> packet::error_type = 0; /*[[nodiscard]] virtual packet::error_type fuse_getxattr(const char *path, const char *name, char *value, const remote::file_size &size) = 0; @@ -87,10 +83,9 @@ public: const char *name, char *value, const remote::file_size &size, std::uint32_t position) = 0;*/ - [[nodiscard]] virtual auto fuse_getxtimes(const char *path, - remote::file_time &bkuptime, - remote::file_time &crtime) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_getxtimes(const char *path, remote::file_time &bkuptime, + remote::file_time &crtime) -> packet::error_type = 0; [[nodiscard]] virtual auto fuse_init() -> packet::error_type = 0; @@ -98,65 +93,63 @@ public: char *buffer, const remote::file_size &size) = 0;*/ [[nodiscard]] virtual auto - fuse_mkdir(const char *path, const remote::file_mode &mode) - -> packet::error_type = 0; + fuse_mkdir(const char *path, + const remote::file_mode &mode) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_open(const char *path, - const remote::open_flags &flags, - remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_open(const char *path, const remote::open_flags &flags, + remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_opendir(const char *path, - remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_opendir(const char *path, + remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_read(const char *path, char *buffer, - const remote::file_size &read_size, - const remote::file_offset &read_offset, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_read(const char *path, char *buffer, const remote::file_size &read_size, + const remote::file_offset &read_offset, + const remote::file_handle &handle) -> packet::error_type = 0; [[nodiscard]] virtual auto fuse_readdir(const char *path, const remote::file_offset &offset, - const remote::file_handle &handle, std::string &item_path) - -> packet::error_type = 0; + const remote::file_handle &handle, + std::string &item_path) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_release(const char *path, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_release(const char *path, + const remote::file_handle &handle) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_releasedir(const char *path, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_releasedir(const char *path, + const remote::file_handle &handle) -> packet::error_type = 0; //[[nodiscard]] virtual packet::error_type fuse_removexattr(const char *path, // const char *name) = // 0; - [[nodiscard]] virtual auto fuse_rename(const char *from, const char *to) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_rename(const char *from, const char *to) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_rmdir(const char *path) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_rmdir(const char *path) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_setattr_x(const char *path, - remote::setattr_x &attr) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_setattr_x(const char *path, + remote::setattr_x &attr) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_setbkuptime(const char *path, - const remote::file_time &bkuptime) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_setbkuptime(const char *path, + const remote::file_time &bkuptime) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_setchgtime(const char *path, - const remote::file_time &chgtime) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_setchgtime(const char *path, + const remote::file_time &chgtime) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_setcrtime(const char *path, - const remote::file_time &crtime) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_setcrtime(const char *path, + const remote::file_time &crtime) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_setvolname(const char *volname) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_setvolname(const char *volname) -> packet::error_type = 0; /*[[nodiscard]] virtual packet::error_type fuse_setxattr(const char *path, const char *name, const char *value, const remote::file_size &size, const @@ -165,36 +158,35 @@ public: const char *name, const char *value, const remote::file_size &size, const std::int32_t &flags, std::uint32_t position) = 0;*/ - [[nodiscard]] virtual auto fuse_statfs(const char *path, std::uint64_t frsize, - remote::statfs &r_stat) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_statfs(const char *path, std::uint64_t frsize, + remote::statfs &r_stat) -> packet::error_type = 0; [[nodiscard]] virtual auto - fuse_statfs_x(const char *path, std::uint64_t bsize, remote::statfs_x &r_stat) - -> packet::error_type = 0; + fuse_statfs_x(const char *path, std::uint64_t bsize, + remote::statfs_x &r_stat) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_truncate(const char *path, - const remote::file_offset &size) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_truncate(const char *path, + const remote::file_offset &size) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_unlink(const char *path) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_unlink(const char *path) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_utimens(const char *path, - const remote::file_time *tv, - std::uint64_t op0, std::uint64_t op1) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_utimens(const char *path, const remote::file_time *tv, std::uint64_t op0, + std::uint64_t op1) -> packet::error_type = 0; - [[nodiscard]] virtual auto fuse_write(const char *path, const char *buffer, - const remote::file_size &writeSize, - const remote::file_offset &writeOffset, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto + fuse_write(const char *path, const char *buffer, + const remote::file_size &writeSize, + const remote::file_offset &writeOffset, + const remote::file_handle &handle) -> packet::error_type = 0; [[nodiscard]] virtual auto fuse_write_base64( const char *path, const char *buffer, const remote::file_size &writeSize, - const remote::file_offset &writeOffset, const remote::file_handle &handle) - -> packet::error_type = 0; + const remote::file_offset &writeOffset, + const remote::file_handle &handle) -> packet::error_type = 0; virtual void set_fuse_uid_gid(const remote::user_id &uid, const remote::group_id &gid) = 0; @@ -204,4 +196,4 @@ using remote_instance_factory = std::function()>; } // namespace repertory::remote_fuse -#endif // INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_I_REMOTE_INSTANCE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/remotefuse/remote_client.hpp b/repertory/librepertory/include/drives/fuse/remotefuse/remote_client.hpp index d2182ab1..ca4d778a 100644 --- a/repertory/librepertory/include/drives/fuse/remotefuse/remote_client.hpp +++ b/repertory/librepertory/include/drives/fuse/remotefuse/remote_client.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ -#define INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ #include "comm/packet/packet_client.hpp" #include "drives/fuse/remotefuse/i_remote_instance.hpp" @@ -51,9 +51,9 @@ public: [[nodiscard]] auto fuse_chmod(const char *path, const remote::file_mode &mode) -> packet::error_type override; - [[nodiscard]] auto fuse_chown(const char *path, const remote::user_id &uid, - const remote::group_id &gid) - -> packet::error_type override; + [[nodiscard]] auto + fuse_chown(const char *path, const remote::user_id &uid, + const remote::group_id &gid) -> packet::error_type override; [[nodiscard]] auto fuse_destroy() -> packet::error_type override; @@ -67,23 +67,21 @@ public: const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_fsetattr_x(const char *path, - const remote::setattr_x &attr, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto fuse_fsetattr_x( + const char *path, const remote::setattr_x &attr, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_fsync(const char *path, const std::int32_t &datasync, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto + fuse_fsync(const char *path, const std::int32_t &datasync, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_ftruncate(const char *path, - const remote::file_offset &size, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto fuse_ftruncate( + const char *path, const remote::file_offset &size, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_getattr(const char *path, remote::stat &st, - bool &directory) - -> packet::error_type override; + [[nodiscard]] auto + fuse_getattr(const char *path, remote::stat &st, + bool &directory) -> packet::error_type override; /*[[nodiscard]] packet::error_type fuse_getxattr(const char *path, const char *name, char *value, const remote::file_size &size) override ; @@ -92,10 +90,9 @@ public: *name, char *value, const remote::file_size &size, std::uint32_t position) override ;*/ - [[nodiscard]] auto fuse_getxtimes(const char *path, - remote::file_time &bkuptime, - remote::file_time &crtime) - -> packet::error_type override; + [[nodiscard]] auto + fuse_getxtimes(const char *path, remote::file_time &bkuptime, + remote::file_time &crtime) -> packet::error_type override; [[nodiscard]] auto fuse_init() -> packet::error_type override; @@ -110,27 +107,25 @@ public: [[nodiscard]] auto fuse_create(const char *path, const remote::file_mode &mode, - const remote::open_flags &flags, remote::file_handle &handle) - -> packet::error_type override; + const remote::open_flags &flags, + remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_open(const char *path, - const remote::open_flags &flags, - remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto + fuse_open(const char *path, const remote::open_flags &flags, + remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_read(const char *path, char *buffer, - const remote::file_size &read_size, - const remote::file_offset &read_offset, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto + fuse_read(const char *path, char *buffer, const remote::file_size &read_size, + const remote::file_offset &read_offset, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_rename(const char *from, const char *to) - -> packet::error_type override; + [[nodiscard]] auto fuse_rename(const char *from, + const char *to) -> packet::error_type override; [[nodiscard]] auto fuse_readdir(const char *path, const remote::file_offset &offset, - const remote::file_handle &handle, std::string &item_path) - -> packet::error_type override; + const remote::file_handle &handle, + std::string &item_path) -> packet::error_type override; [[nodiscard]] auto fuse_release(const char *path, const remote::file_handle &handle) @@ -144,8 +139,8 @@ public: * char *name) override * ;*/ - [[nodiscard]] auto fuse_rmdir(const char *path) - -> packet::error_type override; + [[nodiscard]] auto + fuse_rmdir(const char *path) -> packet::error_type override; [[nodiscard]] auto fuse_setattr_x(const char *path, remote::setattr_x &attr) -> packet::error_type override; @@ -162,8 +157,8 @@ public: const remote::file_time &crtime) -> packet::error_type override; - [[nodiscard]] auto fuse_setvolname(const char *volname) - -> packet::error_type override; + [[nodiscard]] auto + fuse_setvolname(const char *volname) -> packet::error_type override; [[nodiscard]] /*packet::error_type fuse_setxattr(const char *path, const char *name, const char *value, const remote::file_size &size, const std::int32_t @@ -174,48 +169,45 @@ public: std::int32_t &flags, std::uint32_t position) override ;*/ [[nodiscard]] auto - fuse_statfs(const char *path, std::uint64_t frsize, remote::statfs &st) - -> packet::error_type override; + fuse_statfs(const char *path, std::uint64_t frsize, + remote::statfs &st) -> packet::error_type override; - [[nodiscard]] auto fuse_statfs_x(const char *path, std::uint64_t bsize, - remote::statfs_x &st) - -> packet::error_type override; + [[nodiscard]] auto + fuse_statfs_x(const char *path, std::uint64_t bsize, + remote::statfs_x &st) -> packet::error_type override; - [[nodiscard]] auto fuse_truncate(const char *path, - const remote::file_offset &size) - -> packet::error_type override; + [[nodiscard]] auto + fuse_truncate(const char *path, + const remote::file_offset &size) -> packet::error_type override; - [[nodiscard]] auto fuse_unlink(const char *path) - -> packet::error_type override; + [[nodiscard]] auto + fuse_unlink(const char *path) -> packet::error_type override; - [[nodiscard]] auto fuse_utimens(const char *path, const remote::file_time *tv, - std::uint64_t op0, std::uint64_t op1) - -> packet::error_type override; + [[nodiscard]] auto + fuse_utimens(const char *path, const remote::file_time *tv, std::uint64_t op0, + std::uint64_t op1) -> packet::error_type override; - [[nodiscard]] auto fuse_write(const char *path, const char *buffer, - const remote::file_size &write_size, - const remote::file_offset &write_offset, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto + fuse_write(const char *path, const char *buffer, + const remote::file_size &write_size, + const remote::file_offset &write_offset, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto fuse_write_base64(const char *path, const char *buffer, - const remote::file_size &write_size, - const remote::file_offset &write_offset, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto fuse_write_base64( + const char *path, const char *buffer, const remote::file_size &write_size, + const remote::file_offset &write_offset, + const remote::file_handle &handle) -> packet::error_type override; - [[nodiscard]] auto json_create_directory_snapshot(const std::string &path, - json &json_data) - -> packet::error_type override; + [[nodiscard]] auto json_create_directory_snapshot( + const std::string &path, json &json_data) -> packet::error_type override; [[nodiscard]] auto json_read_directory_snapshot( const std::string &path, const remote::file_handle &handle, std::uint32_t page, json &json_data) -> packet::error_type override; - [[nodiscard]] auto - json_release_directory_snapshot(const std::string &path, - const remote::file_handle &handle) - -> packet::error_type override; + [[nodiscard]] auto json_release_directory_snapshot( + const std::string &path, + const remote::file_handle &handle) -> packet::error_type override; void set_fuse_uid_gid(const remote::user_id &uid, const remote::group_id &gid) override; @@ -223,4 +215,4 @@ public: } // namespace remote_fuse } // namespace repertory -#endif // INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_CLIENT_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/remotefuse/remote_fuse_drive.hpp b/repertory/librepertory/include/drives/fuse/remotefuse/remote_fuse_drive.hpp index 3638f5d2..6c642555 100644 --- a/repertory/librepertory/include/drives/fuse/remotefuse/remote_fuse_drive.hpp +++ b/repertory/librepertory/include/drives/fuse/remotefuse/remote_fuse_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ -#define INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ #if !defined(_WIN32) #include "drives/fuse/fuse_base.hpp" @@ -238,4 +238,4 @@ protected: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_FUSE_DRIVE_HPP_ diff --git a/repertory/librepertory/include/drives/fuse/remotefuse/remote_server.hpp b/repertory/librepertory/include/drives/fuse/remotefuse/remote_server.hpp index 7b341607..29a3f615 100644 --- a/repertory/librepertory/include/drives/fuse/remotefuse/remote_server.hpp +++ b/repertory/librepertory/include/drives/fuse/remotefuse/remote_server.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ -#define INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ +#define REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ #if !defined(_WIN32) #include "drives/directory_cache.hpp" @@ -320,4 +320,4 @@ public: } // namespace repertory #endif -#endif // INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_FUSE_REMOTEFUSE_REMOTE_SERVER_HPP_ diff --git a/repertory/librepertory/include/drives/remote/i_remote_json.hpp b/repertory/librepertory/include/drives/remote/i_remote_json.hpp index e8a99c08..f9118f23 100644 --- a/repertory/librepertory/include/drives/remote/i_remote_json.hpp +++ b/repertory/librepertory/include/drives/remote/i_remote_json.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ -#define INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ +#define REPERTORY_INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ #include "comm/packet/packet.hpp" @@ -30,18 +30,17 @@ class i_remote_json { public: [[nodiscard]] virtual auto - json_create_directory_snapshot(const std::string &path, json &json_data) - -> packet::error_type = 0; + json_create_directory_snapshot(const std::string &path, + json &json_data) -> packet::error_type = 0; [[nodiscard]] virtual auto json_read_directory_snapshot( const std::string &path, const remote::file_handle &handle, std::uint32_t page, json &json_data) -> packet::error_type = 0; - [[nodiscard]] virtual auto - json_release_directory_snapshot(const std::string &path, - const remote::file_handle &handle) - -> packet::error_type = 0; + [[nodiscard]] virtual auto json_release_directory_snapshot( + const std::string &path, + const remote::file_handle &handle) -> packet::error_type = 0; }; } // namespace repertory -#endif // INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_REMOTE_I_REMOTE_JSON_HPP_ diff --git a/repertory/librepertory/include/drives/remote/remote_open_file_table.hpp b/repertory/librepertory/include/drives/remote/remote_open_file_table.hpp index bc45d649..ed88e86a 100644 --- a/repertory/librepertory/include/drives/remote/remote_open_file_table.hpp +++ b/repertory/librepertory/include/drives/remote/remote_open_file_table.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ -#define INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ #include "types/remote.hpp" #include "types/repertory.hpp" @@ -110,4 +110,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_OPEN_FILE_TABLE_HPP_ diff --git a/repertory/librepertory/include/drives/remote/remote_server_base.hpp b/repertory/librepertory/include/drives/remote/remote_server_base.hpp index 2c23911e..eab0c180 100644 --- a/repertory/librepertory/include/drives/remote/remote_server_base.hpp +++ b/repertory/librepertory/include/drives/remote/remote_server_base.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ -#define INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ #include "app_config.hpp" #include "comm/packet/client_pool.hpp" @@ -1430,4 +1430,4 @@ protected: }; } // namespace repertory -#endif // INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_REMOTE_REMOTE_SERVER_BASE_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/i_winfsp_drive.hpp b/repertory/librepertory/include/drives/winfsp/i_winfsp_drive.hpp index 72de1616..f8c41270 100644 --- a/repertory/librepertory/include/drives/winfsp/i_winfsp_drive.hpp +++ b/repertory/librepertory/include/drives/winfsp/i_winfsp_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ -#define INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ #if defined(_WIN32) #include "types/remote.hpp" @@ -69,4 +69,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_I_WINFSP_DRIVE_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/remotewinfsp/i_remote_instance.hpp b/repertory/librepertory/include/drives/winfsp/remotewinfsp/i_remote_instance.hpp index 8134fc57..f0762031 100644 --- a/repertory/librepertory/include/drives/winfsp/remotewinfsp/i_remote_instance.hpp +++ b/repertory/librepertory/include/drives/winfsp/remotewinfsp/i_remote_instance.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ -#define INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ #include "drives/remote/i_remote_json.hpp" @@ -29,8 +29,8 @@ class i_remote_instance : public virtual i_remote_json { INTERFACE_SETUP(i_remote_instance); public: - virtual auto winfsp_can_delete(PVOID file_desc, PWSTR file_name) - -> packet::error_type = 0; + virtual auto winfsp_can_delete(PVOID file_desc, + PWSTR file_name) -> packet::error_type = 0; virtual auto winfsp_cleanup(PVOID file_desc, PWSTR file_name, UINT32 flags, BOOLEAN &was_closed) -> packet::error_type = 0; @@ -41,77 +41,76 @@ public: UINT32 granted_access, UINT32 file_attributes, UINT64 allocation_size, PVOID *file_desc, remote::file_info *file_info, - std::string &normalized_name, BOOLEAN &exists) - -> packet::error_type = 0; + std::string &normalized_name, + BOOLEAN &exists) -> packet::error_type = 0; virtual auto winfsp_flush(PVOID file_desc, remote::file_info *file_info) -> packet::error_type = 0; - virtual auto winfsp_get_dir_buffer(PVOID file_desc, PVOID *&ptr) - -> packet::error_type = 0; - - virtual auto winfsp_get_file_info(PVOID file_desc, remote::file_info *file_info) - -> packet::error_type = 0; + virtual auto winfsp_get_dir_buffer(PVOID file_desc, + PVOID *&ptr) -> packet::error_type = 0; virtual auto - winfsp_get_security_by_name(PWSTR file_name, PUINT32 file_attributes, - std::uint64_t *security_descriptor_size, - std::wstring &str_descriptor) - -> packet::error_type = 0; + winfsp_get_file_info(PVOID file_desc, + remote::file_info *file_info) -> packet::error_type = 0; - virtual auto winfsp_get_volume_info(UINT64 &total_size, UINT64 &free_size, - std::string &volume_label) - -> packet::error_type = 0; + virtual auto winfsp_get_security_by_name( + PWSTR file_name, PUINT32 file_attributes, + std::uint64_t *security_descriptor_size, + std::wstring &str_descriptor) -> packet::error_type = 0; - virtual auto winfsp_mounted(const std::wstring &location) - -> packet::error_type = 0; + virtual auto + winfsp_get_volume_info(UINT64 &total_size, UINT64 &free_size, + std::string &volume_label) -> packet::error_type = 0; - virtual auto winfsp_open(PWSTR file_name, UINT32 create_options, - UINT32 granted_access, PVOID *file_desc, - remote::file_info *file_info, - std::string &normalized_name) - -> packet::error_type = 0; + virtual auto + winfsp_mounted(const std::wstring &location) -> packet::error_type = 0; - virtual auto winfsp_overwrite(PVOID file_desc, UINT32 file_attributes, - BOOLEAN replace_file_attributes, - UINT64 allocation_size, - remote::file_info *file_info) - -> packet::error_type = 0; + virtual auto + winfsp_open(PWSTR file_name, UINT32 create_options, UINT32 granted_access, + PVOID *file_desc, remote::file_info *file_info, + std::string &normalized_name) -> packet::error_type = 0; + + virtual auto + winfsp_overwrite(PVOID file_desc, UINT32 file_attributes, + BOOLEAN replace_file_attributes, UINT64 allocation_size, + remote::file_info *file_info) -> packet::error_type = 0; virtual auto winfsp_read(PVOID file_desc, PVOID buffer, UINT64 offset, - UINT32 length, PUINT32 bytes_transferred) - -> packet::error_type = 0; + UINT32 length, + PUINT32 bytes_transferred) -> packet::error_type = 0; virtual auto winfsp_read_directory(PVOID file_desc, PWSTR pattern, - PWSTR marker, json &itemList) - -> packet::error_type = 0; + PWSTR marker, + json &itemList) -> packet::error_type = 0; - virtual auto winfsp_rename(PVOID file_desc, PWSTR file_name, PWSTR new_file_name, - BOOLEAN replace_if_exists) -> packet::error_type = 0; + virtual auto + winfsp_rename(PVOID file_desc, PWSTR file_name, PWSTR new_file_name, + BOOLEAN replace_if_exists) -> packet::error_type = 0; - virtual auto winfsp_set_basic_info(PVOID file_desc, UINT32 file_attributes, - UINT64 creation_time, UINT64 last_access_time, - UINT64 last_write_time, UINT64 change_time, - remote::file_info *file_info) - -> packet::error_type = 0; + virtual auto + winfsp_set_basic_info(PVOID file_desc, UINT32 file_attributes, + UINT64 creation_time, UINT64 last_access_time, + UINT64 last_write_time, UINT64 change_time, + remote::file_info *file_info) -> packet::error_type = 0; - virtual auto winfsp_set_file_size(PVOID file_desc, UINT64 new_size, - BOOLEAN set_allocation_size, - remote::file_info *file_info) - -> packet::error_type = 0; + virtual auto + winfsp_set_file_size(PVOID file_desc, UINT64 new_size, + BOOLEAN set_allocation_size, + remote::file_info *file_info) -> packet::error_type = 0; - virtual auto winfsp_unmounted(const std::wstring &location) - -> packet::error_type = 0; + virtual auto + winfsp_unmounted(const std::wstring &location) -> packet::error_type = 0; - virtual auto winfsp_write(PVOID file_desc, PVOID buffer, UINT64 offset, - UINT32 length, BOOLEAN write_to_end, - BOOLEAN constrained_io, PUINT32 bytes_transferred, - remote::file_info *file_info) - -> packet::error_type = 0; + virtual auto + winfsp_write(PVOID file_desc, PVOID buffer, UINT64 offset, UINT32 length, + BOOLEAN write_to_end, BOOLEAN constrained_io, + PUINT32 bytes_transferred, + remote::file_info *file_info) -> packet::error_type = 0; }; using remote_instance_factory = std::function()>; } // namespace repertory::remote_winfsp -#endif // INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_I_REMOTE_INSTANCE_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_client.hpp b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_client.hpp index 126b6208..af2129f9 100644 --- a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_client.hpp +++ b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_client.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ -#define INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ #include "comm/packet/packet.hpp" #include "comm/packet/packet_client.hpp" @@ -132,4 +132,4 @@ public: } // namespace remote_winfsp } // namespace repertory -#endif // INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_CLIENT_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_server.hpp b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_server.hpp index d57cba14..5ebd98c7 100644 --- a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_server.hpp +++ b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_server.hpp @@ -21,8 +21,8 @@ */ // NOTE: Most of the WinFSP pass-through code has been modified from: // https://github.com/billziss-gh/winfsp/blob/master/tst/passthrough-cpp/passthrough-cpp.cpp -#ifndef INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ -#define INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ #if defined(_WIN32) #include "comm/packet/packet.hpp" @@ -285,4 +285,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_SERVER_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_winfsp_drive.hpp b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_winfsp_drive.hpp index a02ba6e0..32f033a4 100644 --- a/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_winfsp_drive.hpp +++ b/repertory/librepertory/include/drives/winfsp/remotewinfsp/remote_winfsp_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ -#define INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ #if defined(_WIN32) #include "drives/winfsp/remotewinfsp/i_remote_instance.hpp" @@ -152,4 +152,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_REMOTEWINFSP_REMOTE_WINFSP_DRIVE_HPP_ diff --git a/repertory/librepertory/include/drives/winfsp/winfsp_drive.hpp b/repertory/librepertory/include/drives/winfsp/winfsp_drive.hpp index dfeac2a0..b6d1d49c 100644 --- a/repertory/librepertory/include/drives/winfsp/winfsp_drive.hpp +++ b/repertory/librepertory/include/drives/winfsp/winfsp_drive.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ -#define INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ +#ifndef REPERTORY_INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ +#define REPERTORY_INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ #if defined(_WIN32) #include "drives/eviction.hpp" @@ -200,4 +200,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ +#endif // REPERTORY_INCLUDE_DRIVES_WINFSP_WINFSP_DRIVE_HPP_ diff --git a/repertory/librepertory/include/events/consumers/console_consumer.hpp b/repertory/librepertory/include/events/consumers/console_consumer.hpp index 1dd845ae..c537d690 100644 --- a/repertory/librepertory/include/events/consumers/console_consumer.hpp +++ b/repertory/librepertory/include/events/consumers/console_consumer.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ -#define INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ +#define REPERTORY_INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ #include "events/event_system.hpp" @@ -40,4 +40,4 @@ private: }; } // namespace repertory -#endif // INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_CONSUMERS_CONSOLE_CONSUMER_HPP_ diff --git a/repertory/librepertory/include/events/consumers/logging_consumer.hpp b/repertory/librepertory/include/events/consumers/logging_consumer.hpp index bd90fea3..556bc72f 100644 --- a/repertory/librepertory/include/events/consumers/logging_consumer.hpp +++ b/repertory/librepertory/include/events/consumers/logging_consumer.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ -#define INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ +#define REPERTORY_INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ #include "events/event_system.hpp" @@ -43,4 +43,4 @@ private: }; } // namespace repertory -#endif // INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_CONSUMERS_LOGGING_CONSUMER_HPP_ diff --git a/repertory/librepertory/include/events/event.hpp b/repertory/librepertory/include/events/event.hpp index fc767b03..0d5147cc 100644 --- a/repertory/librepertory/include/events/event.hpp +++ b/repertory/librepertory/include/events/event.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_EVENT_HPP_ -#define INCLUDE_EVENTS_EVENT_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_EVENT_HPP_ +#define REPERTORY_INCLUDE_EVENTS_EVENT_HPP_ namespace repertory { enum class event_level { @@ -72,4 +72,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_EVENTS_EVENT_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_EVENT_HPP_ diff --git a/repertory/librepertory/include/events/event_system.hpp b/repertory/librepertory/include/events/event_system.hpp index 850f6c59..afb741bb 100644 --- a/repertory/librepertory/include/events/event_system.hpp +++ b/repertory/librepertory/include/events/event_system.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ -#define INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ +#define REPERTORY_INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ #include "events/event.hpp" #include "events/t_event_system.hpp" @@ -237,4 +237,4 @@ private: \ [this](const event &evt) { callback(evt); })) } // namespace repertory -#endif // INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_EVENT_SYSTEM_HPP_ diff --git a/repertory/librepertory/include/events/events.hpp b/repertory/librepertory/include/events/events.hpp index ed90cb7c..de5b5596 100644 --- a/repertory/librepertory/include/events/events.hpp +++ b/repertory/librepertory/include/events/events.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_EVENTS_HPP_ -#define INCLUDE_EVENTS_EVENTS_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_ +#define REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_ #include "events/event_system.hpp" #include "types/repertory.hpp" @@ -292,4 +292,4 @@ E_SIMPLE2(unmount_result, info, true, // clang-format on } // namespace repertory -#endif // INCLUDE_EVENTS_EVENTS_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_ diff --git a/repertory/librepertory/include/events/t_event_system.hpp b/repertory/librepertory/include/events/t_event_system.hpp index a6ee5c22..6294baa5 100644 --- a/repertory/librepertory/include/events/t_event_system.hpp +++ b/repertory/librepertory/include/events/t_event_system.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ -#define INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ +#ifndef REPERTORY_INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ +#define REPERTORY_INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ #include "events/event.hpp" #include "utils/collection.hpp" @@ -190,4 +190,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ +#endif // REPERTORY_INCLUDE_EVENTS_T_EVENT_SYSTEM_HPP_ diff --git a/repertory/librepertory/include/file_manager/events.hpp b/repertory/librepertory/include/file_manager/events.hpp index aad295ea..f3549517 100644 --- a/repertory/librepertory/include/file_manager/events.hpp +++ b/repertory/librepertory/include/file_manager/events.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_FILE_MANAGER_EVENTS_HPP_ -#define INCLUDE_FILE_MANAGER_EVENTS_HPP_ +#ifndef REPERTORY_INCLUDE_FILE_MANAGER_EVENTS_HPP_ +#define REPERTORY_INCLUDE_FILE_MANAGER_EVENTS_HPP_ #include "events/events.hpp" #include "types/repertory.hpp" @@ -94,4 +94,4 @@ E_SIMPLE1(item_timeout, debug, true, // clang-format on } // namespace repertory -#endif // INCLUDE_FILE_MANAGER_EVENTS_HPP_ +#endif // REPERTORY_INCLUDE_FILE_MANAGER_EVENTS_HPP_ diff --git a/repertory/librepertory/include/file_manager/file_manager.hpp b/repertory/librepertory/include/file_manager/file_manager.hpp index e4f6544b..1e985f823 100644 --- a/repertory/librepertory/include/file_manager/file_manager.hpp +++ b/repertory/librepertory/include/file_manager/file_manager.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ -#define INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ +#ifndef REPERTORY_INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ +#define REPERTORY_INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ #include "events/event_system.hpp" #include "events/events.hpp" @@ -561,4 +561,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ +#endif // REPERTORY_INCLUDE_FILE_MANAGER_FILE_MANAGER_HPP_ diff --git a/repertory/librepertory/include/file_manager/i_file_manager.hpp b/repertory/librepertory/include/file_manager/i_file_manager.hpp index fc0a9285..609d6218 100644 --- a/repertory/librepertory/include/file_manager/i_file_manager.hpp +++ b/repertory/librepertory/include/file_manager/i_file_manager.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ -#define INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ +#ifndef REPERTORY_INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ +#define REPERTORY_INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ #include "types/repertory.hpp" @@ -31,23 +31,22 @@ class i_file_manager { INTERFACE_SETUP(i_file_manager); public: - [[nodiscard]] virtual auto evict_file(const std::string &api_path) - -> bool = 0; + [[nodiscard]] virtual auto + evict_file(const std::string &api_path) -> bool = 0; + + [[nodiscard]] virtual auto get_directory_items( + const std::string &api_path) const -> directory_item_list = 0; [[nodiscard]] virtual auto - get_directory_items(const std::string &api_path) const - -> directory_item_list = 0; - - [[nodiscard]] virtual auto get_open_files() const - -> std::unordered_map = 0; + get_open_files() const -> std::unordered_map = 0; [[nodiscard]] virtual auto has_no_open_file_handles() const -> bool = 0; - [[nodiscard]] virtual auto is_processing(const std::string &api_path) const - -> bool = 0; + [[nodiscard]] virtual auto + is_processing(const std::string &api_path) const -> bool = 0; virtual void update_used_space(std::uint64_t &used_space) const = 0; }; } // namespace repertory -#endif // INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ +#endif // REPERTORY_INCLUDE_FILE_MANAGER_I_FILE_MANAGER_HPP_ diff --git a/repertory/librepertory/include/file_manager/i_open_file.hpp b/repertory/librepertory/include/file_manager/i_open_file.hpp index 69f0fab6..82a08a02 100644 --- a/repertory/librepertory/include/file_manager/i_open_file.hpp +++ b/repertory/librepertory/include/file_manager/i_open_file.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ -#define INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ +#ifndef REPERTORY_INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ +#define REPERTORY_INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ #include "types/repertory.hpp" @@ -40,19 +40,19 @@ public: [[nodiscard]] virtual auto get_filesystem_item() const -> filesystem_item = 0; - [[nodiscard]] virtual auto get_open_data() const - -> std::map = 0; + [[nodiscard]] virtual auto + get_open_data() const -> std::map = 0; - [[nodiscard]] virtual auto get_open_data(std::uint64_t handle) const - -> open_file_data = 0; + [[nodiscard]] virtual auto + get_open_data(std::uint64_t handle) const -> open_file_data = 0; [[nodiscard]] virtual auto get_open_file_count() const -> std::size_t = 0; - [[nodiscard]] virtual auto get_read_state() const - -> boost::dynamic_bitset<> = 0; + [[nodiscard]] virtual auto + get_read_state() const -> boost::dynamic_bitset<> = 0; - [[nodiscard]] virtual auto get_read_state(std::size_t chunk) const - -> bool = 0; + [[nodiscard]] virtual auto + get_read_state(std::size_t chunk) const -> bool = 0; [[nodiscard]] virtual auto get_source_path() const -> std::string = 0; @@ -68,11 +68,11 @@ public: native_operation_callback callback) -> api_error = 0; [[nodiscard]] virtual auto read(std::size_t read_size, - std::uint64_t read_offset, data_buffer &data) - -> api_error = 0; + std::uint64_t read_offset, + data_buffer &data) -> api_error = 0; - [[nodiscard]] virtual auto resize(std::uint64_t new_file_size) - -> api_error = 0; + [[nodiscard]] virtual auto + resize(std::uint64_t new_file_size) -> api_error = 0; virtual void set_api_path(const std::string &api_path) = 0; @@ -91,8 +91,8 @@ public: virtual auto close() -> bool = 0; - [[nodiscard]] virtual auto get_handles() const - -> std::vector = 0; + [[nodiscard]] virtual auto + get_handles() const -> std::vector = 0; [[nodiscard]] virtual auto is_complete() const -> bool = 0; @@ -104,4 +104,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ +#endif // REPERTORY_INCLUDE_FILE_MANAGER_I_OPEN_FILE_HPP_ diff --git a/repertory/librepertory/include/file_manager/i_upload_manager.hpp b/repertory/librepertory/include/file_manager/i_upload_manager.hpp index cb9a7169..24561593 100644 --- a/repertory/librepertory/include/file_manager/i_upload_manager.hpp +++ b/repertory/librepertory/include/file_manager/i_upload_manager.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ -#define INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ +#ifndef REPERTORY_INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ +#define REPERTORY_INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ namespace repertory { class i_open_file; @@ -40,4 +40,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ +#endif // REPERTORY_INCLUDE_FILE_MANAGER_I_UPLOAD_MANAGER_HPP_ diff --git a/repertory/librepertory/include/platform/platform.hpp b/repertory/librepertory/include/platform/platform.hpp index fb6d6224..208ebcbb 100644 --- a/repertory/librepertory/include/platform/platform.hpp +++ b/repertory/librepertory/include/platform/platform.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PLATFORM_PLATFORM_HPP_ -#define INCLUDE_PLATFORM_PLATFORM_HPP_ +#ifndef REPERTORY_INCLUDE_PLATFORM_PLATFORM_HPP_ +#define REPERTORY_INCLUDE_PLATFORM_PLATFORM_HPP_ #include "platform/unix_platform.hpp" #include "platform/win32_platform.hpp" @@ -29,4 +29,4 @@ #include "utils/windows.hpp" #include "utils/windows/windows_utils.hpp" -#endif // INCLUDE_PLATFORM_PLATFORM_HPP_ +#endif // REPERTORY_INCLUDE_PLATFORM_PLATFORM_HPP_ diff --git a/repertory/librepertory/include/platform/unix_platform.hpp b/repertory/librepertory/include/platform/unix_platform.hpp index 2528df54..2f41ca6c 100644 --- a/repertory/librepertory/include/platform/unix_platform.hpp +++ b/repertory/librepertory/include/platform/unix_platform.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ -#define INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ +#ifndef REPERTORY_INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ +#define REPERTORY_INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ #if !defined(_WIN32) #include "types/repertory.hpp" @@ -77,4 +77,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ +#endif // REPERTORY_INCLUDE_PLATFORM_UNIXPLATFORM_HPP_ diff --git a/repertory/librepertory/include/platform/win32_platform.hpp b/repertory/librepertory/include/platform/win32_platform.hpp index e6f0c2dd..2f63a32c 100644 --- a/repertory/librepertory/include/platform/win32_platform.hpp +++ b/repertory/librepertory/include/platform/win32_platform.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PLATFORM_WINPLATFORM_HPP_ -#define INCLUDE_PLATFORM_WINPLATFORM_HPP_ +#ifndef REPERTORY_INCLUDE_PLATFORM_WINPLATFORM_HPP_ +#define REPERTORY_INCLUDE_PLATFORM_WINPLATFORM_HPP_ #if defined(_WIN32) #include "app_config.hpp" @@ -83,4 +83,4 @@ public: } // namespace repertory #endif // _WIN32 -#endif // INCLUDE_PLATFORM_WINPLATFORM_HPP_ +#endif // REPERTORY_INCLUDE_PLATFORM_WINPLATFORM_HPP_ diff --git a/repertory/librepertory/include/providers/base_provider.hpp b/repertory/librepertory/include/providers/base_provider.hpp index 889214f3..fea28a39 100644 --- a/repertory/librepertory/include/providers/base_provider.hpp +++ b/repertory/librepertory/include/providers/base_provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ #include "providers/i_provider.hpp" #include "providers/meta_db.hpp" @@ -191,4 +191,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_BASE_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/providers/encrypt/encrypt_provider.hpp b/repertory/librepertory/include/providers/encrypt/encrypt_provider.hpp index c57b362e..502d4a88 100644 --- a/repertory/librepertory/include/providers/encrypt/encrypt_provider.hpp +++ b/repertory/librepertory/include/providers/encrypt/encrypt_provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ #include "app_config.hpp" #include "providers/i_provider.hpp" @@ -217,4 +217,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_ENCRYPT_ENCRYPT_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/providers/i_provider.hpp b/repertory/librepertory/include/providers/i_provider.hpp index a45865e6..27812291 100644 --- a/repertory/librepertory/include/providers/i_provider.hpp +++ b/repertory/librepertory/include/providers/i_provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_I_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_I_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_I_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_I_PROVIDER_HPP_ #include "types/repertory.hpp" @@ -31,14 +31,13 @@ class i_provider { INTERFACE_SETUP(i_provider); public: - [[nodiscard]] virtual auto create_directory(const std::string &api_path, - api_meta_map &meta) - -> api_error = 0; - [[nodiscard]] virtual auto - create_directory_clone_source_meta(const std::string &source_api_path, - const std::string &api_path) - -> api_error = 0; + create_directory(const std::string &api_path, + api_meta_map &meta) -> api_error = 0; + + [[nodiscard]] virtual auto create_directory_clone_source_meta( + const std::string &source_api_path, + const std::string &api_path) -> api_error = 0; [[nodiscard]] virtual auto create_file(const std::string &api_path, api_meta_map &meta) -> api_error = 0; @@ -47,9 +46,8 @@ public: get_api_path_from_source(const std::string &source_path, std::string &api_path) const -> api_error = 0; - [[nodiscard]] virtual auto - get_directory_item_count(const std::string &api_path) const - -> std::uint64_t = 0; + [[nodiscard]] virtual auto get_directory_item_count( + const std::string &api_path) const -> std::uint64_t = 0; [[nodiscard]] virtual auto get_directory_items(const std::string &api_path, @@ -58,38 +56,35 @@ public: [[nodiscard]] virtual auto get_file(const std::string &api_path, api_file &file) const -> api_error = 0; - [[nodiscard]] virtual auto get_file_list(api_file_list &list) const - -> api_error = 0; + [[nodiscard]] virtual auto + get_file_list(api_file_list &list) const -> api_error = 0; - [[nodiscard]] virtual auto get_file_size(const std::string &api_path, - std::uint64_t &file_size) const - -> api_error = 0; + [[nodiscard]] virtual auto + get_file_size(const std::string &api_path, + std::uint64_t &file_size) const -> api_error = 0; - [[nodiscard]] virtual auto get_filesystem_item(const std::string &api_path, - bool directory, - filesystem_item &fsi) const - -> api_error = 0; + [[nodiscard]] virtual auto + get_filesystem_item(const std::string &api_path, bool directory, + filesystem_item &fsi) const -> api_error = 0; [[nodiscard]] virtual auto get_filesystem_item_and_file(const std::string &api_path, api_file &file, filesystem_item &fsi) const -> api_error = 0; + [[nodiscard]] virtual auto get_filesystem_item_from_source_path( + const std::string &source_path, + filesystem_item &fsi) const -> api_error = 0; + [[nodiscard]] virtual auto - get_filesystem_item_from_source_path(const std::string &source_path, - filesystem_item &fsi) const - -> api_error = 0; + get_item_meta(const std::string &api_path, + api_meta_map &meta) const -> api_error = 0; - [[nodiscard]] virtual auto get_item_meta(const std::string &api_path, - api_meta_map &meta) const - -> api_error = 0; + [[nodiscard]] virtual auto + get_item_meta(const std::string &api_path, const std::string &key, + std::string &value) const -> api_error = 0; - [[nodiscard]] virtual auto get_item_meta(const std::string &api_path, - const std::string &key, - std::string &value) const - -> api_error = 0; - - [[nodiscard]] virtual auto get_pinned_files() const - -> std::vector = 0; + [[nodiscard]] virtual auto + get_pinned_files() const -> std::vector = 0; [[nodiscard]] virtual auto get_provider_type() const -> provider_type = 0; @@ -119,39 +114,37 @@ public: std::uint64_t offset, data_buffer &data, stop_type &stop_requested) -> api_error = 0; - [[nodiscard]] virtual auto remove_directory(const std::string &api_path) - -> api_error = 0; + [[nodiscard]] virtual auto + remove_directory(const std::string &api_path) -> api_error = 0; - [[nodiscard]] virtual auto remove_file(const std::string &api_path) - -> api_error = 0; + [[nodiscard]] virtual auto + remove_file(const std::string &api_path) -> api_error = 0; - [[nodiscard]] virtual auto remove_item_meta(const std::string &api_path, - const std::string &key) - -> api_error = 0; + [[nodiscard]] virtual auto + remove_item_meta(const std::string &api_path, + const std::string &key) -> api_error = 0; - [[nodiscard]] virtual auto rename_file(const std::string &from_api_path, - const std::string &to_api_path) - -> api_error = 0; + [[nodiscard]] virtual auto + rename_file(const std::string &from_api_path, + const std::string &to_api_path) -> api_error = 0; - [[nodiscard]] virtual auto set_item_meta(const std::string &api_path, - const std::string &key, - const std::string &value) - -> api_error = 0; + [[nodiscard]] virtual auto + set_item_meta(const std::string &api_path, const std::string &key, + const std::string &value) -> api_error = 0; - [[nodiscard]] virtual auto set_item_meta(const std::string &api_path, - const api_meta_map &meta) - -> api_error = 0; + [[nodiscard]] virtual auto + set_item_meta(const std::string &api_path, + const api_meta_map &meta) -> api_error = 0; [[nodiscard]] virtual auto start(api_item_added_callback api_item_added, i_file_manager *mgr) -> bool = 0; virtual void stop() = 0; - [[nodiscard]] virtual auto upload_file(const std::string &api_path, - const std::string &source_path, - stop_type &stop_requested) - -> api_error = 0; + [[nodiscard]] virtual auto + upload_file(const std::string &api_path, const std::string &source_path, + stop_type &stop_requested) -> api_error = 0; }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_I_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_I_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/providers/meta_db.hpp b/repertory/librepertory/include/providers/meta_db.hpp index ecce51f1..c2cd9dc8 100644 --- a/repertory/librepertory/include/providers/meta_db.hpp +++ b/repertory/librepertory/include/providers/meta_db.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_META_DB_HPP_ -#define INCLUDE_PROVIDERS_META_DB_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_META_DB_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_META_DB_HPP_ #include "types/repertory.hpp" #include "utils/db/sqlite/db_common.hpp" @@ -81,4 +81,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_META_DB_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_META_DB_HPP_ diff --git a/repertory/librepertory/include/providers/provider.hpp b/repertory/librepertory/include/providers/provider.hpp index 9c139435..3070bbb2 100644 --- a/repertory/librepertory/include/providers/provider.hpp +++ b/repertory/librepertory/include/providers/provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_PROVIDER_HPP_ #include "types/repertory.hpp" @@ -28,9 +28,9 @@ namespace repertory { class app_config; class i_provider; -[[nodiscard]] auto create_provider(const provider_type &prov, - app_config &config) - -> std::unique_ptr; +[[nodiscard]] auto +create_provider(const provider_type &prov, + app_config &config) -> std::unique_ptr; } // namespace repertory -#endif // INCLUDE_PROVIDERS_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/providers/s3/s3_provider.hpp b/repertory/librepertory/include/providers/s3/s3_provider.hpp index d9091657..9eece8da 100644 --- a/repertory/librepertory/include/providers/s3/s3_provider.hpp +++ b/repertory/librepertory/include/providers/s3/s3_provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ #include "providers/base_provider.hpp" #include "types/repertory.hpp" @@ -147,4 +147,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_S3_S3_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/providers/sia/sia_provider.hpp b/repertory/librepertory/include/providers/sia/sia_provider.hpp index 9213e747..2c4433f8 100644 --- a/repertory/librepertory/include/providers/sia/sia_provider.hpp +++ b/repertory/librepertory/include/providers/sia/sia_provider.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ -#define INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ +#ifndef REPERTORY_INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ +#define REPERTORY_INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ #include "providers/base_provider.hpp" #include "types/repertory.hpp" @@ -120,4 +120,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ +#endif // REPERTORY_INCLUDE_PROVIDERS_SIA_SIA_PROVIDER_HPP_ diff --git a/repertory/librepertory/include/rpc/client/client.hpp b/repertory/librepertory/include/rpc/client/client.hpp index 13cac340..8c2e2c86 100644 --- a/repertory/librepertory/include/rpc/client/client.hpp +++ b/repertory/librepertory/include/rpc/client/client.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_RPC_CLIENT_CLIENT_HPP_ -#define INCLUDE_RPC_CLIENT_CLIENT_HPP_ +#ifndef REPERTORY_INCLUDE_RPC_CLIENT_CLIENT_HPP_ +#define REPERTORY_INCLUDE_RPC_CLIENT_CLIENT_HPP_ #include "types/rpc.hpp" @@ -38,11 +38,11 @@ public: [[nodiscard]] auto get_config() -> rpc_response; - [[nodiscard]] auto get_config_value_by_name(const std::string &name) - -> rpc_response; + [[nodiscard]] auto + get_config_value_by_name(const std::string &name) -> rpc_response; - [[nodiscard]] auto get_directory_items(const std::string &api_path) - -> rpc_response; + [[nodiscard]] auto + get_directory_items(const std::string &api_path) -> rpc_response; [[nodiscard]] auto get_open_files() -> rpc_response; @@ -52,9 +52,9 @@ public: [[nodiscard]] auto pinned_status(const std::string &api_file) -> rpc_response; - [[nodiscard]] auto set_config_value_by_name(const std::string &name, - const std::string &value) - -> rpc_response; + [[nodiscard]] auto + set_config_value_by_name(const std::string &name, + const std::string &value) -> rpc_response; [[nodiscard]] auto unmount() -> rpc_response; @@ -62,4 +62,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_RPC_CLIENT_CLIENT_HPP_ +#endif // REPERTORY_INCLUDE_RPC_CLIENT_CLIENT_HPP_ diff --git a/repertory/librepertory/include/rpc/server/full_server.hpp b/repertory/librepertory/include/rpc/server/full_server.hpp index 810d4e4c..f9231c1d 100644 --- a/repertory/librepertory/include/rpc/server/full_server.hpp +++ b/repertory/librepertory/include/rpc/server/full_server.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ -#define INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ +#ifndef REPERTORY_INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ +#define REPERTORY_INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ #include "rpc/server/server.hpp" @@ -64,4 +64,4 @@ protected: }; } // namespace repertory -#endif // INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ +#endif // REPERTORY_INCLUDE_RPC_SERVER_FULL_SERVER_HPP_ diff --git a/repertory/librepertory/include/rpc/server/server.hpp b/repertory/librepertory/include/rpc/server/server.hpp index ff4b80fd..14d2ff84 100644 --- a/repertory/librepertory/include/rpc/server/server.hpp +++ b/repertory/librepertory/include/rpc/server/server.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_RPC_SERVER_SERVER_HPP_ -#define INCLUDE_RPC_SERVER_SERVER_HPP_ +#ifndef REPERTORY_INCLUDE_RPC_SERVER_SERVER_HPP_ +#define REPERTORY_INCLUDE_RPC_SERVER_SERVER_HPP_ #include "types/rpc.hpp" @@ -72,4 +72,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_RPC_SERVER_SERVER_HPP_ +#endif // REPERTORY_INCLUDE_RPC_SERVER_SERVER_HPP_ diff --git a/repertory/librepertory/include/types/remote.hpp b/repertory/librepertory/include/types/remote.hpp index 3ebaf84c..52cddfd4 100644 --- a/repertory/librepertory/include/types/remote.hpp +++ b/repertory/librepertory/include/types/remote.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_TYPES_REMOTE_HPP_ -#define INCLUDE_TYPES_REMOTE_HPP_ +#ifndef REPERTORY_INCLUDE_TYPES_REMOTE_HPP_ +#define REPERTORY_INCLUDE_TYPES_REMOTE_HPP_ inline constexpr const auto PACKET_SERVICE_FUSE{1U}; inline constexpr const auto PACKET_SERVICE_WINFSP{2U}; @@ -160,4 +160,4 @@ create_os_open_flags(const open_flags &flags) -> std::uint32_t; #endif // !defined(_WIN32) } // namespace repertory::remote -#endif // INCLUDE_TYPES_REMOTE_HPP_ +#endif // REPERTORY_INCLUDE_TYPES_REMOTE_HPP_ diff --git a/repertory/librepertory/include/types/repertory.hpp b/repertory/librepertory/include/types/repertory.hpp index 5b859349..6d949096 100644 --- a/repertory/librepertory/include/types/repertory.hpp +++ b/repertory/librepertory/include/types/repertory.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_TYPES_REPERTORY_HPP_ -#define INCLUDE_TYPES_REPERTORY_HPP_ +#ifndef REPERTORY_INCLUDE_TYPES_REPERTORY_HPP_ +#define REPERTORY_INCLUDE_TYPES_REPERTORY_HPP_ namespace repertory { inline constexpr const auto max_time{std::numeric_limits::max()}; @@ -289,4 +289,4 @@ using directory_item_list = std::vector; using meta_provider_callback = std::function; } // namespace repertory -#endif // INCLUDE_TYPES_REPERTORY_HPP_ +#endif // REPERTORY_INCLUDE_TYPES_REPERTORY_HPP_ diff --git a/repertory/librepertory/include/types/rpc.hpp b/repertory/librepertory/include/types/rpc.hpp index 88ca9438..4b1ee3da 100644 --- a/repertory/librepertory/include/types/rpc.hpp +++ b/repertory/librepertory/include/types/rpc.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_TYPES_RPC_HPP_ -#define INCLUDE_TYPES_RPC_HPP_ +#ifndef REPERTORY_INCLUDE_TYPES_RPC_HPP_ +#define REPERTORY_INCLUDE_TYPES_RPC_HPP_ namespace repertory { struct rpc_host_info { @@ -56,4 +56,4 @@ const std::string unpin_file = "unpin_file"; } // namespace rpc_method } // namespace repertory -#endif // INCLUDE_TYPES_RPC_HPP_ +#endif // REPERTORY_INCLUDE_TYPES_RPC_HPP_ diff --git a/repertory/librepertory/include/types/s3.hpp b/repertory/librepertory/include/types/s3.hpp index a3822496..01f27eed 100644 --- a/repertory/librepertory/include/types/s3.hpp +++ b/repertory/librepertory/include/types/s3.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_TYPES_S3_HPP_ -#define INCLUDE_TYPES_S3_HPP_ +#ifndef REPERTORY_INCLUDE_TYPES_S3_HPP_ +#define REPERTORY_INCLUDE_TYPES_S3_HPP_ #include "types/repertory.hpp" #include "utils/string.hpp" @@ -73,4 +73,4 @@ struct head_object_result { }; } // namespace repertory -#endif // INCLUDE_TYPES_S3_HPP_ +#endif // REPERTORY_INCLUDE_TYPES_S3_HPP_ diff --git a/repertory/librepertory/include/types/startup_exception.hpp b/repertory/librepertory/include/types/startup_exception.hpp index df6e26fd..99164893 100644 --- a/repertory/librepertory/include/types/startup_exception.hpp +++ b/repertory/librepertory/include/types/startup_exception.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ -#define INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ +#ifndef REPERTORY_INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ +#define REPERTORY_INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ namespace repertory { class startup_exception : public virtual std::runtime_error { @@ -30,4 +30,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ +#endif // REPERTORY_INCLUDE_TYPES_STARTUP_EXCEPTION_HPP_ diff --git a/repertory/librepertory/include/utils/cli_utils.hpp b/repertory/librepertory/include/utils/cli_utils.hpp index fca6f004..3ab1488c 100644 --- a/repertory/librepertory/include/utils/cli_utils.hpp +++ b/repertory/librepertory/include/utils/cli_utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_CLI_UTILS_HPP_ -#define INCLUDE_UTILS_CLI_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_CLI_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_CLI_UTILS_HPP_ #include "types/repertory.hpp" @@ -109,4 +109,4 @@ parse_drive_options(std::vector args, provider_type &prov, std::string &data_directory) -> std::vector; } // namespace repertory::utils::cli -#endif // INCLUDE_UTILS_CLI_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_CLI_UTILS_HPP_ diff --git a/repertory/librepertory/include/utils/error_utils.hpp b/repertory/librepertory/include/utils/error_utils.hpp index 3cdd736a..c5835981 100644 --- a/repertory/librepertory/include/utils/error_utils.hpp +++ b/repertory/librepertory/include/utils/error_utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_ERROR_UTILS_HPP_ -#define INCLUDE_UTILS_ERROR_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_ERROR_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_ERROR_UTILS_HPP_ #include "types/repertory.hpp" @@ -92,4 +92,4 @@ void raise_url_error(std::string_view function, std::string_view url, } // namespace repertory::utils::error -#endif // INCLUDE_UTILS_ERROR_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_ERROR_UTILS_HPP_ diff --git a/repertory/librepertory/include/utils/file_utils.hpp b/repertory/librepertory/include/utils/file_utils.hpp index 709ad525..2fba22fb 100644 --- a/repertory/librepertory/include/utils/file_utils.hpp +++ b/repertory/librepertory/include/utils/file_utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_FILE_UTILS_HPP_ -#define INCLUDE_UTILS_FILE_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_FILE_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_FILE_UTILS_HPP_ #include "utils/file.hpp" @@ -35,4 +35,4 @@ read_file_lines(const std::string &path) -> std::vector; [[nodiscard]] auto reset_modified_time(const std::string &path) -> bool; } // namespace repertory::utils::file -#endif // INCLUDE_UTILS_FILE_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_FILE_UTILS_HPP_ diff --git a/repertory/librepertory/include/utils/polling.hpp b/repertory/librepertory/include/utils/polling.hpp index 1d06ae9c..83127d63 100644 --- a/repertory/librepertory/include/utils/polling.hpp +++ b/repertory/librepertory/include/utils/polling.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_POLLING_HPP_ -#define INCLUDE_UTILS_POLLING_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_POLLING_HPP_ +#define REPERTORY_INCLUDE_UTILS_POLLING_HPP_ #include "types/repertory.hpp" @@ -83,4 +83,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_UTILS_POLLING_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_POLLING_HPP_ diff --git a/repertory/librepertory/include/utils/single_thread_service_base.hpp b/repertory/librepertory/include/utils/single_thread_service_base.hpp index bd89dd28..54e6e02d 100644 --- a/repertory/librepertory/include/utils/single_thread_service_base.hpp +++ b/repertory/librepertory/include/utils/single_thread_service_base.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ -#define INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ +#define REPERTORY_INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ #include "types/repertory.hpp" @@ -65,4 +65,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_SINGLE_THREAD_SERVICE_BASE_HPP_ diff --git a/repertory/librepertory/include/utils/throttle.hpp b/repertory/librepertory/include/utils/throttle.hpp index 30fbe5cc..8ad85253 100644 --- a/repertory/librepertory/include/utils/throttle.hpp +++ b/repertory/librepertory/include/utils/throttle.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_THROTTLE_HPP_ -#define INCLUDE_UTILS_THROTTLE_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_THROTTLE_HPP_ +#define REPERTORY_INCLUDE_UTILS_THROTTLE_HPP_ namespace repertory { class throttle final { @@ -56,4 +56,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_UTILS_THROTTLE_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_THROTTLE_HPP_ diff --git a/repertory/librepertory/include/utils/timeout.hpp b/repertory/librepertory/include/utils/timeout.hpp index a45e5417..230a00c8 100644 --- a/repertory/librepertory/include/utils/timeout.hpp +++ b/repertory/librepertory/include/utils/timeout.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_TIMEOUT_HPP_ -#define INCLUDE_UTILS_TIMEOUT_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_TIMEOUT_HPP_ +#define REPERTORY_INCLUDE_UTILS_TIMEOUT_HPP_ namespace repertory { class timeout final { @@ -47,4 +47,4 @@ public: }; } // namespace repertory -#endif // INCLUDE_UTILS_TIMEOUT_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_TIMEOUT_HPP_ diff --git a/repertory/librepertory/include/utils/unix/unix_utils.hpp b/repertory/librepertory/include/utils/unix/unix_utils.hpp index 00e3d3d6..a474240f 100644 --- a/repertory/librepertory/include/utils/unix/unix_utils.hpp +++ b/repertory/librepertory/include/utils/unix/unix_utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ -#define INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ #if !defined(_WIN32) #include "types/remote.hpp" @@ -49,4 +49,4 @@ void windows_create_to_unix(const UINT32 &create_options, } // namespace repertory::utils #endif // !_WIN32 -#endif // INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_UNIX_UNIX_UTILS_HPP_ diff --git a/repertory/librepertory/include/utils/utils.hpp b/repertory/librepertory/include/utils/utils.hpp index d4efa9a8..f72d1472 100644 --- a/repertory/librepertory/include/utils/utils.hpp +++ b/repertory/librepertory/include/utils/utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_UTILS_HPP_ -#define INCLUDE_UTILS_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_UTILS_HPP_ #include "types/repertory.hpp" @@ -35,4 +35,4 @@ create_volume_label(const provider_type &prov) -> std::string; [[nodiscard]] auto get_attributes_from_meta(const api_meta_map &meta) -> DWORD; } // namespace repertory::utils -#endif // INCLUDE_UTILS_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_UTILS_HPP_ diff --git a/repertory/librepertory/include/utils/windows/windows_utils.hpp b/repertory/librepertory/include/utils/windows/windows_utils.hpp index 52b2c555..1501e4f5 100644 --- a/repertory/librepertory/include/utils/windows/windows_utils.hpp +++ b/repertory/librepertory/include/utils/windows/windows_utils.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ -#define INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ +#ifndef REPERTORY_INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ +#define REPERTORY_INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ #if defined(_WIN32) #include "types/remote.hpp" @@ -51,4 +51,4 @@ unix_open_flags_to_flags_and_perms(const remote::file_mode &mode, } // namespace repertory::utils #endif // _WIN32 -#endif // INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ +#endif // REPERTORY_INCLUDE_UTILS_WINDOWS_WINDOWS_UTILS_HPP_ diff --git a/repertory/repertory/include/cli/actions.hpp b/repertory/repertory/include/cli/actions.hpp index a27abce1..ae020202 100644 --- a/repertory/repertory/include/cli/actions.hpp +++ b/repertory/repertory/include/cli/actions.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_ACTIONS_HPP_ -#define INCLUDE_CLI_ACTIONS_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_ACTIONS_HPP_ +#define REPERTORY_INCLUDE_CLI_ACTIONS_HPP_ #include "cli/check_version.hpp" #include "cli/display_config.hpp" @@ -90,4 +90,4 @@ perform_action(const utils::cli::option &opt, std::vector args, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_ACTIONS_HPP_ +#endif // REPERTORY_INCLUDE_CLI_ACTIONS_HPP_ diff --git a/repertory/repertory/include/cli/check_version.hpp b/repertory/repertory/include/cli/check_version.hpp index aa557ddd..f8aaaac5 100644 --- a/repertory/repertory/include/cli/check_version.hpp +++ b/repertory/repertory/include/cli/check_version.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_CHECK_VERSION_HPP_ -#define INCLUDE_CLI_CHECK_VERSION_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_CHECK_VERSION_HPP_ +#define REPERTORY_INCLUDE_CLI_CHECK_VERSION_HPP_ #include "app_config.hpp" #include "types/repertory.hpp" @@ -70,4 +70,4 @@ check_version(std::vector /* args */, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_CHECK_VERSION_HPP_ +#endif // REPERTORY_INCLUDE_CLI_CHECK_VERSION_HPP_ diff --git a/repertory/repertory/include/cli/display_config.hpp b/repertory/repertory/include/cli/display_config.hpp index 712b8584..eb8542e1 100644 --- a/repertory/repertory/include/cli/display_config.hpp +++ b/repertory/repertory/include/cli/display_config.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_DISPLAY_CONFIG_HPP_ -#define INCLUDE_CLI_DISPLAY_CONFIG_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_DISPLAY_CONFIG_HPP_ +#define REPERTORY_INCLUDE_CLI_DISPLAY_CONFIG_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -57,4 +57,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_DISPLAY_CONFIG_HPP_ +#endif // REPERTORY_INCLUDE_CLI_DISPLAY_CONFIG_HPP_ diff --git a/repertory/repertory/include/cli/drive_information.hpp b/repertory/repertory/include/cli/drive_information.hpp index f72cb020..fa6d3fb4 100644 --- a/repertory/repertory/include/cli/drive_information.hpp +++ b/repertory/repertory/include/cli/drive_information.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_DRIVE_INFORMATION_HPP_ -#define INCLUDE_CLI_DRIVE_INFORMATION_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_DRIVE_INFORMATION_HPP_ +#define REPERTORY_INCLUDE_CLI_DRIVE_INFORMATION_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -57,4 +57,4 @@ drive_information(std::vector /* args */, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_DRIVE_INFORMATION_HPP_ +#endif // REPERTORY_INCLUDE_CLI_DRIVE_INFORMATION_HPP_ diff --git a/repertory/repertory/include/cli/get.hpp b/repertory/repertory/include/cli/get.hpp index 9a449e04..70d43a16 100644 --- a/repertory/repertory/include/cli/get.hpp +++ b/repertory/repertory/include/cli/get.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_GET_HPP_ -#define INCLUDE_CLI_GET_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_GET_HPP_ +#define REPERTORY_INCLUDE_CLI_GET_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -65,4 +65,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_GET_HPP_ +#endif // REPERTORY_INCLUDE_CLI_GET_HPP_ diff --git a/repertory/repertory/include/cli/get_directory_items.hpp b/repertory/repertory/include/cli/get_directory_items.hpp index 65f6945b..0d65138e 100644 --- a/repertory/repertory/include/cli/get_directory_items.hpp +++ b/repertory/repertory/include/cli/get_directory_items.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_GET_DIRECTORY_ITEMS_HPP_ -#define INCLUDE_CLI_GET_DIRECTORY_ITEMS_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_GET_DIRECTORY_ITEMS_HPP_ +#define REPERTORY_INCLUDE_CLI_GET_DIRECTORY_ITEMS_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -54,4 +54,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_GETDIRECTORYITEMS_HPP_ +#endif // REPERTORY_INCLUDE_CLI_GETDIRECTORYITEMS_HPP_ diff --git a/repertory/repertory/include/cli/get_pinned_files.hpp b/repertory/repertory/include/cli/get_pinned_files.hpp index e3a563e9..ecb09e88 100644 --- a/repertory/repertory/include/cli/get_pinned_files.hpp +++ b/repertory/repertory/include/cli/get_pinned_files.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_GET_PINNED_FILES_HPP_ -#define INCLUDE_CLI_GET_PINNED_FILES_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_GET_PINNED_FILES_HPP_ +#define REPERTORY_INCLUDE_CLI_GET_PINNED_FILES_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -52,4 +52,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_GET_PINNED_FILES_HPP_ +#endif // REPERTORY_INCLUDE_CLI_GET_PINNED_FILES_HPP_ diff --git a/repertory/repertory/include/cli/get_version.hpp b/repertory/repertory/include/cli/get_version.hpp index 0bde8112..7a64944f 100644 --- a/repertory/repertory/include/cli/get_version.hpp +++ b/repertory/repertory/include/cli/get_version.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_VERSION_HPP_ -#define INCLUDE_CLI_VERSION_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_VERSION_HPP_ +#define REPERTORY_INCLUDE_CLI_VERSION_HPP_ #include "version.hpp" @@ -32,4 +32,4 @@ template inline void version(std::vector args) { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_VERSION_HPP_ +#endif // REPERTORY_INCLUDE_CLI_VERSION_HPP_ diff --git a/repertory/repertory/include/cli/help.hpp b/repertory/repertory/include/cli/help.hpp index 73df681f..0ae80960 100644 --- a/repertory/repertory/include/cli/help.hpp +++ b/repertory/repertory/include/cli/help.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_HELP_HPP_ -#define INCLUDE_CLI_HELP_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_HELP_HPP_ +#define REPERTORY_INCLUDE_CLI_HELP_HPP_ namespace repertory::cli::actions { template inline void help(std::vector args) { @@ -88,4 +88,4 @@ template inline void help(std::vector args) { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_HELP_HPP_ +#endif // REPERTORY_INCLUDE_CLI_HELP_HPP_ diff --git a/repertory/repertory/include/cli/mount.hpp b/repertory/repertory/include/cli/mount.hpp index c545e4f6..93e61e2d 100644 --- a/repertory/repertory/include/cli/mount.hpp +++ b/repertory/repertory/include/cli/mount.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_MOUNT_HPP_ -#define INCLUDE_CLI_MOUNT_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_MOUNT_HPP_ +#define REPERTORY_INCLUDE_CLI_MOUNT_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -176,4 +176,4 @@ mount(std::vector args, std::string data_directory, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_MOUNT_HPP_ +#endif // REPERTORY_INCLUDE_CLI_MOUNT_HPP_ diff --git a/repertory/repertory/include/cli/open_files.hpp b/repertory/repertory/include/cli/open_files.hpp index f7a3f76f..f69a18ab 100644 --- a/repertory/repertory/include/cli/open_files.hpp +++ b/repertory/repertory/include/cli/open_files.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_OPEN_FILES_HPP_ -#define INCLUDE_CLI_OPEN_FILES_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_OPEN_FILES_HPP_ +#define REPERTORY_INCLUDE_CLI_OPEN_FILES_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -30,11 +30,12 @@ #include "utils/cli_utils.hpp" namespace repertory::cli::actions { -[[nodiscard]] inline auto -open_files(std::vector /* args */, - const std::string &data_directory, const provider_type &prov, - const std::string &unique_id, std::string user, std::string password) - -> exit_code { +[[nodiscard]] inline auto open_files(std::vector /* args */, + const std::string &data_directory, + const provider_type &prov, + const std::string &unique_id, + std::string user, + std::string password) -> exit_code { auto ret = exit_code::success; lock_data lock(prov, unique_id); const auto res = lock.grab_lock(1U); @@ -56,4 +57,4 @@ open_files(std::vector /* args */, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_OPEN_FILES_HPP_ +#endif // REPERTORY_INCLUDE_CLI_OPEN_FILES_HPP_ diff --git a/repertory/repertory/include/cli/pin_file.hpp b/repertory/repertory/include/cli/pin_file.hpp index f48dc61a..f561cc2b 100644 --- a/repertory/repertory/include/cli/pin_file.hpp +++ b/repertory/repertory/include/cli/pin_file.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_PIN_FILE_HPP_ -#define INCLUDE_CLI_PIN_FILE_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_PIN_FILE_HPP_ +#define REPERTORY_INCLUDE_CLI_PIN_FILE_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -54,4 +54,4 @@ pin_file(std::vector args, const std::string &data_directory, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_PIN_FILE_HPP_ +#endif // REPERTORY_INCLUDE_CLI_PIN_FILE_HPP_ diff --git a/repertory/repertory/include/cli/pinned_status.hpp b/repertory/repertory/include/cli/pinned_status.hpp index 72060faa..6eae0db2 100644 --- a/repertory/repertory/include/cli/pinned_status.hpp +++ b/repertory/repertory/include/cli/pinned_status.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_PINNED_STATUS_HPP_ -#define INCLUDE_CLI_PINNED_STATUS_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_PINNED_STATUS_HPP_ +#define REPERTORY_INCLUDE_CLI_PINNED_STATUS_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -54,4 +54,4 @@ pinned_status(std::vector args, const std::string &data_directory, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_PINNED_STATUS_HPP_ +#endif // REPERTORY_INCLUDE_CLI_PINNED_STATUS_HPP_ diff --git a/repertory/repertory/include/cli/set.hpp b/repertory/repertory/include/cli/set.hpp index 5dde79e1..a4c755ca 100644 --- a/repertory/repertory/include/cli/set.hpp +++ b/repertory/repertory/include/cli/set.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_SET_HPP_ -#define INCLUDE_CLI_SET_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_SET_HPP_ +#define REPERTORY_INCLUDE_CLI_SET_HPP_ #include "app_config.hpp" #include "platform/platform.hpp" @@ -77,4 +77,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_SET_HPP_ +#endif // REPERTORY_INCLUDE_CLI_SET_HPP_ diff --git a/repertory/repertory/include/cli/status.hpp b/repertory/repertory/include/cli/status.hpp index ee4a8918..26a47b33 100644 --- a/repertory/repertory/include/cli/status.hpp +++ b/repertory/repertory/include/cli/status.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_STATUS_HPP_ -#define INCLUDE_CLI_STATUS_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_STATUS_HPP_ +#define REPERTORY_INCLUDE_CLI_STATUS_HPP_ #include "platform/platform.hpp" #include "types/repertory.hpp" @@ -47,4 +47,4 @@ namespace repertory::cli::actions { } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_STATUS_HPP_ +#endif // REPERTORY_INCLUDE_CLI_STATUS_HPP_ diff --git a/repertory/repertory/include/cli/unmount.hpp b/repertory/repertory/include/cli/unmount.hpp index 9ffb7de5..f84d3fdc 100644 --- a/repertory/repertory/include/cli/unmount.hpp +++ b/repertory/repertory/include/cli/unmount.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_UNMOUNT_HPP_ -#define INCLUDE_CLI_UNMOUNT_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_UNMOUNT_HPP_ +#define REPERTORY_INCLUDE_CLI_UNMOUNT_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -50,4 +50,4 @@ unmount(std::vector /* args */, const std::string &data_directory, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_UNMOUNT_HPP_ +#endif // REPERTORY_INCLUDE_CLI_UNMOUNT_HPP_ diff --git a/repertory/repertory/include/cli/unpin_file.hpp b/repertory/repertory/include/cli/unpin_file.hpp index d1bc3622..2867ec75 100644 --- a/repertory/repertory/include/cli/unpin_file.hpp +++ b/repertory/repertory/include/cli/unpin_file.hpp @@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifndef INCLUDE_CLI_UNPIN_FILE_HPP_ -#define INCLUDE_CLI_UNPIN_FILE_HPP_ +#ifndef REPERTORY_INCLUDE_CLI_UNPIN_FILE_HPP_ +#define REPERTORY_INCLUDE_CLI_UNPIN_FILE_HPP_ #include "app_config.hpp" #include "rpc/client/client.hpp" @@ -54,4 +54,4 @@ unpin_file(std::vector args, const std::string &data_directory, } } // namespace repertory::cli::actions -#endif // INCLUDE_CLI_UNPIN_FILE_HPP_ +#endif // REPERTORY_INCLUDE_CLI_UNPIN_FILE_HPP_