summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time.h
diff options
context:
space:
mode:
authorRozlette <Uberpanzermensch@gmail.com>2018-01-18 17:58:29 +0100
committerRozlette <Uberpanzermensch@gmail.com>2018-01-18 17:58:29 +0100
commitc7c180fdf1075827075e7aad6f821cafd09f02f3 (patch)
tree93b648056717d25c93e5ad52fcd9d02bd5582895 /src/core/hle/service/time/time.h
parentMerge pull request #84 from lioncash/cmake (diff)
downloadyuzu-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.h22
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.