Services: Continue separation of services into their own folders

This commit is contained in:
purpasmart96 2015-06-11 15:12:16 -07:00
parent b1cb0a3f2c
commit 7933dbe6a0
75 changed files with 1190 additions and 637 deletions

View file

@ -0,0 +1,31 @@
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/logging/log.h"
#include "core/hle/service/service.h"
#include "core/hle/service/cecd/cecd.h"
#include "core/hle/service/cecd/cecd_s.h"
#include "core/hle/service/cecd/cecd_u.h"
#include "core/hle/kernel/event.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/hle.h"
namespace Service {
namespace CECD {
void Init() {
using namespace Kernel;
AddService(new CECD_S_Interface);
AddService(new CECD_U_Interface);
}
void Shutdown() {
}
} // namespace CECD
} // namespace Service

View file

@ -0,0 +1,20 @@
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/kernel/kernel.h"
#include "core/hle/service/service.h"
namespace Service {
namespace CECD {
/// Initialize CECD service(s)
void Init();
/// Shutdown CECD service(s)
void Shutdown();
} // namespace CECD
} // namespace Service

View file

@ -0,0 +1,20 @@
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/hle.h"
#include "core/hle/service/cecd/cecd.h"
#include "core/hle/service/cecd/cecd_s.h"
namespace Service {
namespace CECD {
// Empty arrays are illegal -- commented out until an entry is added.
//const Interface::FunctionInfo FunctionTable[] = { };
CECD_S_Interface::CECD_S_Interface() {
//Register(FunctionTable);
}
} // namespace CECD
} // namespace Service

View file

@ -0,0 +1,22 @@
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
namespace Service {
namespace CECD {
class CECD_S_Interface : public Interface {
public:
CECD_S_Interface();
std::string GetPortName() const override {
return "cecd:s";
}
};
} // namespace CECD
} // namespace Service

View file

@ -0,0 +1,20 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/hle.h"
#include "core/hle/service/cecd/cecd.h"
#include "core/hle/service/cecd/cecd_u.h"
namespace Service {
namespace CECD {
// Empty arrays are illegal -- commented out until an entry is added.
//const Interface::FunctionInfo FunctionTable[] = { };
CECD_U_Interface::CECD_U_Interface() {
//Register(FunctionTable);
}
} // namespace CECD
} // namespace Service

View file

@ -0,0 +1,22 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/service/service.h"
namespace Service {
namespace CECD {
class CECD_U_Interface : public Interface {
public:
CECD_U_Interface();
std::string GetPortName() const override {
return "cecd:u";
}
};
} // namespace CECD
} // namespace Service