interface.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/time/interface.h"
  5. namespace Service::Time {
  6. Time::Time(std::shared_ptr<Module> time, const char* name)
  7. : Module::Interface(std::move(time), name) {
  8. static const FunctionInfo functions[] = {
  9. {0, &Time::GetStandardUserSystemClock, "GetStandardUserSystemClock"},
  10. {1, &Time::GetStandardNetworkSystemClock, "GetStandardNetworkSystemClock"},
  11. {2, &Time::GetStandardSteadyClock, "GetStandardSteadyClock"},
  12. {3, &Time::GetTimeZoneService, "GetTimeZoneService"},
  13. {4, &Time::GetStandardLocalSystemClock, "GetStandardLocalSystemClock"},
  14. {5, nullptr, "GetEphemeralNetworkSystemClock"},
  15. {50, nullptr, "SetStandardSteadyClockInternalOffset"},
  16. {100, nullptr, "IsStandardUserSystemClockAutomaticCorrectionEnabled"},
  17. {101, nullptr, "SetStandardUserSystemClockAutomaticCorrectionEnabled"},
  18. {102, nullptr, "GetStandardUserSystemClockInitialYear"},
  19. {200, nullptr, "IsStandardNetworkSystemClockAccuracySufficient"},
  20. {300, nullptr, "CalculateMonotonicSystemClockBaseTimePoint"},
  21. {400, nullptr, "GetClockSnapshot"},
  22. {401, nullptr, "GetClockSnapshotFromSystemClockContext"},
  23. {500, nullptr, "CalculateStandardUserSystemClockDifferenceByUser"},
  24. {501, nullptr, "CalculateSpanBetween"},
  25. };
  26. RegisterHandlers(functions);
  27. }
  28. } // namespace Service::Time