88 lines
2.9 KiB
C++
88 lines
2.9 KiB
C++
/*
|
|
Copyright <2018-2025> <scott.e.graves@protonmail.com>
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
#ifndef REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_
|
|
#define REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_
|
|
#if 0
|
|
|
|
#include "types/repertory.hpp"
|
|
|
|
namespace repertory {
|
|
// clang-format off
|
|
E_SIMPLE1(item_timeout, trace,
|
|
std::string, api_path, ap, E_FROM_STRING
|
|
);
|
|
|
|
E_SIMPLE2(invalid_cache_size, warn,
|
|
std::uint64_t, cache_size, sz, E_FROM_UINT64,
|
|
std::uint64_t, by, by, E_FROM_UINT64
|
|
);
|
|
|
|
E_SIMPLE2(max_cache_size_reached, warn,
|
|
std::uint64_t, cache_size, sz, E_FROM_UINT64,
|
|
std::uint64_t, max_cache_size, max, E_FROM_UINT64
|
|
);
|
|
|
|
E_SIMPLE2(packet_client_timeout, error,
|
|
std::string, event_name, en, E_FROM_STRING,
|
|
std::string, message, msg, E_FROM_STRING
|
|
);
|
|
|
|
//FUSE
|
|
E_SIMPLE3(fuse_event, debug,
|
|
std::string, function, func, E_FROM_STRING,
|
|
std::string, api_path, ap, E_FROM_STRING,
|
|
int, result, res, E_FROM_INT32
|
|
);
|
|
|
|
E_SIMPLE1(fuse_args_parsed, info,
|
|
std::string, arguments, args, E_FROM_STRING
|
|
);
|
|
|
|
E_SIMPLE3(remote_fuse_server_event, debug,
|
|
std::string, function, func, E_FROM_STRING,
|
|
std::string, api_path, ap, E_FROM_STRING,
|
|
packet::error_type, result, res, E_FROM_INT32
|
|
);
|
|
|
|
//WINFSP
|
|
E_SIMPLE3(winfsp_event, debug,
|
|
std::string, function, func, E_FROM_STRING,
|
|
std::string, api_path, ap, E_FROM_STRING,
|
|
NTSTATUS, result, res, E_FROM_INT32
|
|
);
|
|
E_SIMPLE(drive_stop_timed_out, info);
|
|
E_SIMPLE3(remote_winfsp_client_event, debug,
|
|
std::string, function, func, E_FROM_STRING,
|
|
std::string, api_path, ap, E_FROM_STRING,
|
|
packet::error_type, result, res, E_FROM_INT32
|
|
);
|
|
E_SIMPLE3(remote_winfsp_server_event, debug,
|
|
std::string, function, FUNC, E_FROM_STRING,
|
|
std::string, api_path, AP, E_FROM_STRING,
|
|
packet::error_type, result, RES, E_FROM_INT32
|
|
);
|
|
// clang-format on
|
|
} // namespace repertory
|
|
|
|
#endif // 0
|
|
#endif // REPERTORY_INCLUDE_EVENTS_EVENTS_HPP_
|