2014-04-13 22:33:45 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-04-13 22:33:45 +02:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
2014-04-17 02:46:05 +02:00
|
|
|
// Namespace APT_U
|
2014-04-13 22:33:45 +02:00
|
|
|
|
2014-04-16 04:42:35 +02:00
|
|
|
namespace APT_U {
|
2014-04-13 22:33:45 +02: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
|
2014-11-19 09:49:13 +01:00
|
|
|
// 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
|
2014-04-13 22:33:45 +02:00
|
|
|
// svcBreak when the command isn't accessible). See http://3dbrew.org/wiki/NS#APT_Services.
|
|
|
|
|
2014-04-17 02:46:05 +02:00
|
|
|
/// Interface to "APT:U" service
|
2014-04-16 04:42:35 +02:00
|
|
|
class Interface : public Service::Interface {
|
2014-04-13 22:33:45 +02:00
|
|
|
public:
|
|
|
|
|
2014-04-16 05:28:03 +02:00
|
|
|
Interface();
|
2014-04-13 22:33:45 +02:00
|
|
|
|
2014-04-16 05:28:03 +02:00
|
|
|
~Interface();
|
2014-04-13 22:33:45 +02:00
|
|
|
|
|
|
|
/**
|
2014-04-16 06:03:41 +02:00
|
|
|
* Gets the string port name used by CTROS for the service
|
2014-04-13 22:33:45 +02:00
|
|
|
* @return Port name of service
|
|
|
|
*/
|
2014-10-26 05:56:13 +01:00
|
|
|
std::string GetPortName() const override {
|
2014-04-13 22:33:45 +02:00
|
|
|
return "APT:U";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|