mirror of
https://github.com/LSPosed/LSPlt.git
synced 2025-05-06 21:48:48 +08:00
inline namespace
This commit is contained in:
parent
5f60a0e30a
commit
5198a7ffba
@ -183,6 +183,7 @@ HookInfos hook_info;
|
||||
} // namespace
|
||||
|
||||
namespace lsplt {
|
||||
inline namespace v1 {
|
||||
[[maybe_unused]] std::vector<MapInfo> MapInfo::Scan() {
|
||||
constexpr static auto kPermLength = 5;
|
||||
constexpr static auto kMapEntry = 7;
|
||||
@ -218,6 +219,7 @@ namespace lsplt {
|
||||
}
|
||||
return info;
|
||||
}
|
||||
|
||||
[[maybe_unused]] bool RegisterHook(ino_t ino, std::string_view symbol, void *callback,
|
||||
void **backup) {
|
||||
if (symbol.empty() || !callback) return false;
|
||||
@ -248,4 +250,5 @@ namespace lsplt {
|
||||
std::unique_lock lock(hook_mutex);
|
||||
return hook_info.InvalidateBackup();
|
||||
}
|
||||
} // namespace v1
|
||||
} // namespace lsplt
|
||||
|
Loading…
x
Reference in New Issue
Block a user