summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-11-09 15:25:56 +0100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-11-09 15:25:56 +0100
commit4f78f5c0df0a106cab891c7f7229563e7f5a69e1 (patch)
tree05f14c6081b79af507e18589935641438efe1406 /src/core/hle/service/time/time.h
parentgl_resource_manager: Amend clang-format discrepancies (diff)
downloadyuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar.gz
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar.bz2
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar.lz
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar.xz
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.tar.zst
yuzu-4f78f5c0df0a106cab891c7f7229563e7f5a69e1.zip
Diffstat (limited to 'src/core/hle/service/time/time.h')
-rw-r--r--src/core/hle/service/time/time.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time.h b/src/core/hle/service/time/time.h
index 5659ecad3..ca30ec60f 100644
--- a/src/core/hle/service/time/time.h
+++ b/src/core/hle/service/time/time.h
@@ -53,6 +53,23 @@ struct SystemClockContext {
static_assert(sizeof(SystemClockContext) == 0x20,
"SystemClockContext structure has incorrect size");
+struct ClockSnapshot {
+ SystemClockContext user_clock_context;
+ SystemClockContext network_clock_context;
+ s64_le system_posix_time;
+ s64_le network_posix_time;
+ CalendarTime system_calendar_time;
+ CalendarTime network_calendar_time;
+ CalendarAdditionalInfo system_calendar_info;
+ CalendarAdditionalInfo network_calendar_info;
+ SteadyClockTimePoint steady_clock_timepoint;
+ LocationName location_name;
+ u8 clock_auto_adjustment_enabled;
+ u8 ipc_u8;
+ INSERT_PADDING_BYTES(2);
+};
+static_assert(sizeof(ClockSnapshot) == 0xd0, "ClockSnapshot is an invalid size");
+
class Module final {
public:
class Interface : public ServiceFramework<Interface> {
@@ -65,6 +82,7 @@ public:
void GetStandardSteadyClock(Kernel::HLERequestContext& ctx);
void GetTimeZoneService(Kernel::HLERequestContext& ctx);
void GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx);
+ void GetClockSnapshot(Kernel::HLERequestContext& ctx);
protected:
std::shared_ptr<Module> time;