diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-29 02:59:09 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-29 03:09:07 +0200 |
commit | ca7655be3a0502e991471ab062b7a481e4a7ed05 (patch) | |
tree | 8dd0eda87e1d51b9bd10cf1ff83599c8491f8bd5 /src/core/hle/service/btm/btm.cpp | |
parent | Merge pull request #847 from lioncash/ncm (diff) | |
download | yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar.gz yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar.bz2 yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar.lz yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar.xz yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.tar.zst yuzu-ca7655be3a0502e991471ab062b7a481e4a7ed05.zip |
Diffstat (limited to 'src/core/hle/service/btm/btm.cpp')
-rw-r--r-- | src/core/hle/service/btm/btm.cpp | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/src/core/hle/service/btm/btm.cpp b/src/core/hle/service/btm/btm.cpp new file mode 100644 index 000000000..f6c0fb8d9 --- /dev/null +++ b/src/core/hle/service/btm/btm.cpp @@ -0,0 +1,87 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include <memory> + +#include "core/hle/service/btm/btm.h" +#include "core/hle/service/service.h" +#include "core/hle/service/sm/sm.h" + +namespace Service::BTM { + +class BTM final : public ServiceFramework<BTM> { +public: + explicit BTM() : ServiceFramework{"btm"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, nullptr, "Unknown1"}, + {1, nullptr, "Unknown2"}, + {2, nullptr, "RegisterSystemEventForConnectedDeviceConditionImpl"}, + {3, nullptr, "Unknown3"}, + {4, nullptr, "Unknown4"}, + {5, nullptr, "Unknown5"}, + {6, nullptr, "Unknown6"}, + {7, nullptr, "Unknown7"}, + {8, nullptr, "RegisterSystemEventForRegisteredDeviceInfoImpl"}, + {9, nullptr, "Unknown8"}, + {10, nullptr, "Unknown9"}, + {11, nullptr, "Unknown10"}, + {12, nullptr, "Unknown11"}, + {13, nullptr, "Unknown12"}, + {14, nullptr, "EnableRadioImpl"}, + {15, nullptr, "DisableRadioImpl"}, + {16, nullptr, "Unknown13"}, + {17, nullptr, "Unknown14"}, + {18, nullptr, "Unknown15"}, + {19, nullptr, "Unknown16"}, + {20, nullptr, "Unknown17"}, + {21, nullptr, "Unknown18"}, + }; + // clang-format on + + RegisterHandlers(functions); + } +}; + +class BTM_DBG final : public ServiceFramework<BTM_DBG> { +public: + explicit BTM_DBG() : ServiceFramework{"btm:dbg"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, nullptr, "RegisterSystemEventForDiscoveryImpl"}, + {1, nullptr, "Unknown1"}, + {2, nullptr, "Unknown2"}, + {3, nullptr, "Unknown3"}, + {4, nullptr, "Unknown4"}, + {5, nullptr, "Unknown5"}, + {6, nullptr, "Unknown6"}, + {7, nullptr, "Unknown7"}, + {8, nullptr, "Unknown8"}, + }; + // clang-format on + + RegisterHandlers(functions); + } +}; + +class BTM_SYS final : public ServiceFramework<BTM_SYS> { +public: + explicit BTM_SYS() : ServiceFramework{"btm:sys"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, nullptr, "GetCoreImpl"}, + }; + // clang-format on + + RegisterHandlers(functions); + } +}; + +void InstallInterfaces(SM::ServiceManager& sm) { + std::make_shared<BTM>()->InstallAsService(sm); + std::make_shared<BTM_DBG>()->InstallAsService(sm); + std::make_shared<BTM_SYS>()->InstallAsService(sm); +} + +} // namespace Service::BTM |