kernel: Move object class to its own source files

General moving to keep kernel object types separate from the direct
kernel code. Also essentially a preliminary cleanup before eliminating
global kernel state in the kernel code.
This commit is contained in:
Lioncash 2018-08-01 22:40:00 -04:00
parent 746d7d4d28
commit bf45092c61
44 changed files with 186 additions and 156 deletions

View file

@ -4,9 +4,11 @@
#pragma once
#include <memory>
#include <string>
#include <unordered_map>
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/object.h"
#include "core/hle/result.h"
#include "core/hle/service/service.h"
@ -19,6 +21,8 @@ class SessionRequestHandler;
namespace Service::SM {
class Controller;
/// Interface to "sm:" service
class SM final : public ServiceFramework<SM> {
public:
@ -32,8 +36,6 @@ private:
std::shared_ptr<ServiceManager> service_manager;
};
class Controller;
constexpr ResultCode ERR_SERVICE_NOT_REGISTERED(-1);
constexpr ResultCode ERR_MAX_CONNECTIONS_REACHED(-1);
constexpr ResultCode ERR_INVALID_NAME_SIZE(-1);