diff options
| author | 2019-06-24 19:20:06 -0400 | |
|---|---|---|
| committer | 2019-06-24 19:20:06 -0400 | |
| commit | 4fab0d392b9bde614ac140920074290976c322aa (patch) | |
| tree | 72ada18001717a8f6fc3ca4c020bdefea38fe874 /src | |
| parent | arp: Move to glue services (diff) | |
| download | yuzu-4fab0d392b9bde614ac140920074290976c322aa.tar.gz yuzu-4fab0d392b9bde614ac140920074290976c322aa.tar.xz yuzu-4fab0d392b9bde614ac140920074290976c322aa.zip | |
glue: Add scaffolding for bgtc:t and bgtc:sc services
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/glue/bgtc.cpp | 50 | ||||
| -rw-r--r-- | src/core/hle/service/glue/bgtc.h | 23 |
2 files changed, 73 insertions, 0 deletions
diff --git a/src/core/hle/service/glue/bgtc.cpp b/src/core/hle/service/glue/bgtc.cpp new file mode 100644 index 000000000..cd89d088f --- /dev/null +++ b/src/core/hle/service/glue/bgtc.cpp | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | // Copyright 2019 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "core/hle/service/glue/bgtc.h" | ||
| 6 | |||
| 7 | namespace Service::Glue { | ||
| 8 | |||
| 9 | BGTC_T::BGTC_T() : ServiceFramework{"bgtc:t"} { | ||
| 10 | // clang-format off | ||
| 11 | static const FunctionInfo functions[] = { | ||
| 12 | {1, nullptr, "NotifyTaskStarting"}, | ||
| 13 | {2, nullptr, "NotifyTaskFinished"}, | ||
| 14 | {3, nullptr, "GetTriggerEvent"}, | ||
| 15 | {4, nullptr, "IsInHalfAwake"}, | ||
| 16 | {5, nullptr, "NotifyClientName"}, | ||
| 17 | {6, nullptr, "IsInFullAwake"}, | ||
| 18 | {11, nullptr, "ScheduleTask"}, | ||
| 19 | {12, nullptr, "GetScheduledTaskInterval"}, | ||
| 20 | {13, nullptr, "UnscheduleTask"}, | ||
| 21 | {14, nullptr, "GetScheduleEvent"}, | ||
| 22 | {15, nullptr, "SchedulePeriodicTask"}, | ||
| 23 | {101, nullptr, "GetOperationMode"}, | ||
| 24 | {102, nullptr, "WillDisconnectNetworkWhenEnteringSleep"}, | ||
| 25 | {103, nullptr, "WillStayHalfAwakeInsteadSleep"}, | ||
| 26 | }; | ||
| 27 | // clang-format on | ||
| 28 | |||
| 29 | RegisterHandlers(functions); | ||
| 30 | } | ||
| 31 | |||
| 32 | BGTC_T::~BGTC_T() = default; | ||
| 33 | |||
| 34 | BGTC_SC::BGTC_SC() : ServiceFramework{"bgtc:sc"} { | ||
| 35 | // clang-format off | ||
| 36 | static const FunctionInfo functions[] = { | ||
| 37 | {1, nullptr, "GetState"}, | ||
| 38 | {2, nullptr, "GetStateChangedEvent"}, | ||
| 39 | {3, nullptr, "NotifyEnteringHalfAwake"}, | ||
| 40 | {4, nullptr, "NotifyLeavingHalfAwake"}, | ||
| 41 | {5, nullptr, "SetIsUsingSleepUnsupportedDevices"}, | ||
| 42 | }; | ||
| 43 | // clang-format on | ||
| 44 | |||
| 45 | RegisterHandlers(functions); | ||
| 46 | } | ||
| 47 | |||
| 48 | BGTC_SC::~BGTC_SC() = default; | ||
| 49 | |||
| 50 | } // namespace Service::Glue | ||
diff --git a/src/core/hle/service/glue/bgtc.h b/src/core/hle/service/glue/bgtc.h new file mode 100644 index 000000000..81844f03e --- /dev/null +++ b/src/core/hle/service/glue/bgtc.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2019 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service::Glue { | ||
| 10 | |||
| 11 | class BGTC_T final : public ServiceFramework<BGTC_T> { | ||
| 12 | public: | ||
| 13 | BGTC_T(); | ||
| 14 | ~BGTC_T() override; | ||
| 15 | }; | ||
| 16 | |||
| 17 | class BGTC_SC final : public ServiceFramework<BGTC_SC> { | ||
| 18 | public: | ||
| 19 | BGTC_SC(); | ||
| 20 | ~BGTC_SC() override; | ||
| 21 | }; | ||
| 22 | |||
| 23 | } // namespace Service::Glue | ||