Services: Continue separation of services into their own folders
This commit is contained in:
parent
b1cb0a3f2c
commit
7933dbe6a0
75 changed files with 1190 additions and 637 deletions
35
src/core/hle/service/cam/cam.cpp
Normal file
35
src/core/hle/service/cam/cam.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
// 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/cam/cam.h"
|
||||
#include "core/hle/service/cam/cam_c.h"
|
||||
#include "core/hle/service/cam/cam_q.h"
|
||||
#include "core/hle/service/cam/cam_s.h"
|
||||
#include "core/hle/service/cam/cam_u.h"
|
||||
|
||||
#include "core/hle/kernel/event.h"
|
||||
#include "core/hle/kernel/shared_memory.h"
|
||||
#include "core/hle/hle.h"
|
||||
|
||||
namespace Service {
|
||||
namespace CAM {
|
||||
|
||||
void Init() {
|
||||
using namespace Kernel;
|
||||
|
||||
AddService(new CAM_C_Interface);
|
||||
AddService(new CAM_Q_Interface);
|
||||
AddService(new CAM_S_Interface);
|
||||
AddService(new CAM_U_Interface);
|
||||
}
|
||||
|
||||
void Shutdown() {
|
||||
}
|
||||
|
||||
} // namespace CAM
|
||||
|
||||
} // namespace Service
|
20
src/core/hle/service/cam/cam.h
Normal file
20
src/core/hle/service/cam/cam.h
Normal 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 CAM {
|
||||
|
||||
/// Initialize CAM service(s)
|
||||
void Init();
|
||||
|
||||
/// Shutdown CAM service(s)
|
||||
void Shutdown();
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
20
src/core/hle/service/cam/cam_c.cpp
Normal file
20
src/core/hle/service/cam/cam_c.cpp
Normal 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/cam/cam.h"
|
||||
#include "core/hle/service/cam/cam_c.h"
|
||||
|
||||
namespace Service {
|
||||
namespace CAM {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
//const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
CAM_C_Interface::CAM_C_Interface() {
|
||||
//Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
22
src/core/hle/service/cam/cam_c.h
Normal file
22
src/core/hle/service/cam/cam_c.h
Normal 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 CAM {
|
||||
|
||||
class CAM_C_Interface : public Service::Interface {
|
||||
public:
|
||||
CAM_C_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cam:c";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
20
src/core/hle/service/cam/cam_q.cpp
Normal file
20
src/core/hle/service/cam/cam_q.cpp
Normal 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/cam/cam.h"
|
||||
#include "core/hle/service/cam/cam_q.h"
|
||||
|
||||
namespace Service {
|
||||
namespace CAM {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
//const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
CAM_Q_Interface::CAM_Q_Interface() {
|
||||
//Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
22
src/core/hle/service/cam/cam_q.h
Normal file
22
src/core/hle/service/cam/cam_q.h
Normal 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 CAM {
|
||||
|
||||
class CAM_Q_Interface : public Service::Interface {
|
||||
public:
|
||||
CAM_Q_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cam:q";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
20
src/core/hle/service/cam/cam_s.cpp
Normal file
20
src/core/hle/service/cam/cam_s.cpp
Normal 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/cam/cam.h"
|
||||
#include "core/hle/service/cam/cam_s.h"
|
||||
|
||||
namespace Service {
|
||||
namespace CAM {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
//const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
CAM_S_Interface::CAM_S_Interface() {
|
||||
//Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
22
src/core/hle/service/cam/cam_s.h
Normal file
22
src/core/hle/service/cam/cam_s.h
Normal 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 CAM {
|
||||
|
||||
class CAM_S_Interface : public Service::Interface {
|
||||
public:
|
||||
CAM_S_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cam:s";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
20
src/core/hle/service/cam/cam_u.cpp
Normal file
20
src/core/hle/service/cam/cam_u.cpp
Normal 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/cam/cam.h"
|
||||
#include "core/hle/service/cam/cam_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace CAM {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
//const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
CAM_U_Interface::CAM_U_Interface() {
|
||||
//Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
22
src/core/hle/service/cam/cam_u.h
Normal file
22
src/core/hle/service/cam/cam_u.h
Normal 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 CAM {
|
||||
|
||||
class CAM_U_Interface : public Service::Interface {
|
||||
public:
|
||||
CAM_U_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cam:u";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace CAM
|
||||
} // namespace Service
|
Loading…
Add table
Add a link
Reference in a new issue