srv.h 853 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. namespace SRV {
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////
  7. // Interface to "SRV" service
  8. class Interface : public Service::Interface {
  9. public:
  10. Interface();
  11. ~Interface();
  12. /**
  13. * Gets the string name used by CTROS for the service
  14. * @return Port name of service
  15. */
  16. std::string GetPortName() const {
  17. return "srv:";
  18. }
  19. /**
  20. * Called when svcSendSyncRequest is called, loads command buffer and executes comand
  21. * @return Return result of svcSendSyncRequest passed back to user app
  22. */
  23. Syscall::Result Sync();
  24. private:
  25. DISALLOW_COPY_AND_ASSIGN(Interface);
  26. };
  27. } // namespace