srv.h 816 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/service.h"
  5. ////////////////////////////////////////////////////////////////////////////////////////////////////
  6. // Namespace SRV
  7. namespace SRV {
  8. /// Interface to "srv:" service
  9. class Interface : public Service::Interface {
  10. public:
  11. Interface();
  12. ~Interface();
  13. /**
  14. * Gets the string name used by CTROS for the service
  15. * @return Port name of service
  16. */
  17. std::string GetPortName() const {
  18. return "srv:";
  19. }
  20. /**
  21. * Called when svcSendSyncRequest is called, loads command buffer and executes comand
  22. * @return Return result of svcSendSyncRequest passed back to user app
  23. */
  24. Syscall::Result Sync();
  25. };
  26. } // namespace