2014-04-13 20:33:45 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Namespace Service
|
|
|
|
|
2014-04-16 02:42:35 +00:00
|
|
|
namespace APT_U {
|
2014-04-13 20:33:45 +00:00
|
|
|
|
|
|
|
// Application and title launching service. These services handle signaling for home/power button as
|
|
|
|
// well. Only one session for either APT service can be open at a time, normally processes close the
|
|
|
|
// service handle immediately once finished using the service. The commands for APT:U and APT:S are
|
|
|
|
// 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.
|
|
|
|
|
2014-04-16 02:42:35 +00:00
|
|
|
class Interface : public Service::Interface {
|
2014-04-13 20:33:45 +00:00
|
|
|
public:
|
|
|
|
|
2014-04-16 03:28:03 +00:00
|
|
|
Interface();
|
2014-04-13 20:33:45 +00:00
|
|
|
|
2014-04-16 03:28:03 +00:00
|
|
|
~Interface();
|
2014-04-13 20:33:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the string port name used by CTROS for the APT service
|
|
|
|
* @return Port name of service
|
|
|
|
*/
|
|
|
|
std::string GetPortName() const {
|
|
|
|
return "APT:U";
|
|
|
|
}
|
|
|
|
|
2014-04-14 02:59:16 +00:00
|
|
|
private:
|
|
|
|
|
2014-04-16 02:42:35 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(Interface);
|
2014-04-13 20:33:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|