tma: Skeleton Service/Task/TaskList classes.

This commit is contained in:
Michael Scire
2018-12-05 02:11:20 -08:00
parent 2572ae8378
commit bb48e33074
11 changed files with 428 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ static constexpr u32 HashServiceName(const char *name) {
return h ^ len;
}
enum class TmaService : u32 {
enum class TmaServiceId : u32 {
Invalid = 0,
/* Special nodes, for facilitating connection over USB. */
@@ -44,3 +44,10 @@ enum class TmaService : u32 {
TestService = HashServiceName("AtmosphereTestService"), /* Temporary service, will be used to debug communications. */
};
static constexpr bool IsMetaService(TmaServiceId id) {
return id == TmaServiceId::UsbQueryTarget ||
id == TmaServiceId::UsbSendHostInfo ||
id == TmaServiceId::UsbConnect ||
id == TmaServiceId::UsbDisconnect;
}