restructured hle:services completely to use function lookup tables

This commit is contained in:
bunnei 2014-04-15 23:28:03 -04:00
parent 386dd722e7
commit ffabed8c25
5 changed files with 217 additions and 139 deletions

View file

@ -0,0 +1,39 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "core/hle/service/service.h"
namespace SRV {
////////////////////////////////////////////////////////////////////////////////////////////////////
// Interface to "SRV" service
class Interface : public Service::Interface {
public:
Interface();
~Interface();
/**
* Gets the string name used by CTROS for a service
* @return Port name of service
*/
std::string GetPortName() const {
return "srv:";
}
/**
* Called when svcSendSyncRequest is called, loads command buffer and executes comand
* @return Return result of svcSendSyncRequest passed back to user app
*/
Syscall::Result Sync();
private:
DISALLOW_COPY_AND_ASSIGN(Interface);
};
} // namespace