spsm.cpp 1.0 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/am/spsm.h"
  5. namespace Service::AM {
  6. SPSM::SPSM(Core::System& system_) : ServiceFramework{system_, "spsm"} {
  7. // clang-format off
  8. static const FunctionInfo functions[] = {
  9. {0, nullptr, "GetState"},
  10. {1, nullptr, "EnterSleep"},
  11. {2, nullptr, "GetLastWakeReason"},
  12. {3, nullptr, "Shutdown"},
  13. {4, nullptr, "GetNotificationMessageEventHandle"},
  14. {5, nullptr, "ReceiveNotificationMessage"},
  15. {6, nullptr, "AnalyzeLogForLastSleepWakeSequence"},
  16. {7, nullptr, "ResetEventLog"},
  17. {8, nullptr, "AnalyzePerformanceLogForLastSleepWakeSequence"},
  18. {9, nullptr, "ChangeHomeButtonLongPressingTime"},
  19. {10, nullptr, "PutErrorState"},
  20. {11, nullptr, "InvalidateCurrentHomeButtonPressing"},
  21. };
  22. // clang-format on
  23. RegisterHandlers(functions);
  24. }
  25. SPSM::~SPSM() = default;
  26. } // namespace Service::AM