diff options
author | Rozlette <Uberpanzermensch@gmail.com> | 2018-01-18 17:58:29 +0100 |
---|---|---|
committer | Rozlette <Uberpanzermensch@gmail.com> | 2018-01-18 17:58:29 +0100 |
commit | c7c180fdf1075827075e7aad6f821cafd09f02f3 (patch) | |
tree | 93b648056717d25c93e5ad52fcd9d02bd5582895 /src/core/hle/service/time/time.h | |
parent | Merge pull request #84 from lioncash/cmake (diff) | |
download | yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar.gz yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar.bz2 yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar.lz yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar.xz yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.tar.zst yuzu-c7c180fdf1075827075e7aad6f821cafd09f02f3.zip |
Diffstat (limited to 'src/core/hle/service/time/time.h')
-rw-r--r-- | src/core/hle/service/time/time.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h index 5f332d057..2aa424dbb 100644 --- a/src/core/hle/service/time/time.h +++ b/src/core/hle/service/time/time.h @@ -33,16 +33,20 @@ struct CalendarAdditionalInfo { static_assert(sizeof(CalendarAdditionalInfo) == 0x18, "CalendarAdditionalInfo structure has incorrect size"); -class TIME final : public ServiceFramework<TIME> { +class Module final { public: - explicit TIME(const char* name); - ~TIME() = default; - -private: - void GetStandardUserSystemClock(Kernel::HLERequestContext& ctx); - void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); - void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); - void GetTimeZoneService(Kernel::HLERequestContext& ctx); + class Interface : public ServiceFramework<Interface> { + public: + Interface(std::shared_ptr<Module> time, const char* name); + + void GetStandardUserSystemClock(Kernel::HLERequestContext& ctx); + void GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx); + void GetStandardSteadyClock(Kernel::HLERequestContext& ctx); + void GetTimeZoneService(Kernel::HLERequestContext& ctx); + + protected: + std::shared_ptr<Module> time; + }; }; /// Registers all Time services with the specified service manager. |