- extracted srv: calls from service.cpp and put in its own module

- added function tables for service calls
- lots of refactoring
This commit is contained in:
bunnei 2014-04-15 22:40:19 -04:00
parent cb504e236b
commit 7ec5950bc4
6 changed files with 113 additions and 106 deletions

View file

@ -17,13 +17,13 @@ namespace Service {
// exactly the same, however certain commands are only accessible with APT:S(NS module will call
// svcBreak when the command isn't accessible). See http://3dbrew.org/wiki/NS#APT_Services.
class APT : public Interface {
class APT_U : public Interface {
public:
APT() {
APT_U() {
}
~APT() {
~APT_U() {
}
enum {
@ -44,14 +44,6 @@ public:
CMD_HEADER_CLOSE_APP = 0x00270044, ///< Close application
};
/**
* Gets the string name used by CTROS for the APT service
* @return String name of service
*/
std::string GetName() const {
return "APT";
}
/**
* Gets the string port name used by CTROS for the APT service
* @return Port name of service
@ -68,10 +60,9 @@ public:
private:
Syscall::Result GetLockHandle();
DISALLOW_COPY_AND_ASSIGN(APT_U);
};
} // namespace