bsd: start stubbing bsd:u and sfdnsres

This commit is contained in:
Frederic Meyer
2018-01-17 21:09:36 +01:00
parent c7452bab90
commit 615b39aa0e
8 changed files with 123 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ set(SRCS
hle/service/time/time_s.cpp
hle/service/vi/vi.cpp
hle/service/vi/vi_m.cpp
hle/service/bsd/bsd.cpp
hle/service/bsd/bsd_u.cpp
hle/service/sfdnsres/sfdnsres.cpp
hle/shared_page.cpp
hw/hw.cpp
hw/lcd.cpp

View File

@@ -0,0 +1,16 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/bsd/bsd.h"
#include "core/hle/service/bsd/bsd_u.h"
namespace Service {
namespace BSD {
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<BSD_U>()->InstallAsService(service_manager);
}
} // namespace BSD
} // namespace Service

View File

@@ -0,0 +1,16 @@
// Copyright 2018 yuzu emulator team
// 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 BSD {
/// Registers all BSD services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace BSD
} // namespace Service

View File

@@ -0,0 +1,17 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/bsd/bsd_u.h"
namespace Service {
namespace BSD {
BSD_U::BSD_U() : ServiceFramework("bsd:u") {
/*static const FunctionInfo functions[] = {
};
RegisterHandlers(functions);*/
}
} // namespace BSD
} // namespace Service

View File

@@ -0,0 +1,22 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/service/service.h"
namespace Service {
namespace BSD {
class BSD_U final : public ServiceFramework<BSD_U> {
public:
BSD_U();
~BSD_U() = default;
private:
};
} // namespace BSD
} // namespace Service

View File

@@ -28,6 +28,8 @@
#include "core/hle/service/sm/sm.h"
#include "core/hle/service/time/time.h"
#include "core/hle/service/vi/vi.h"
#include "core/hle/service/bsd/bsd.h"
#include "core/hle/service/sfdnsres/sfdnsres.h"
using Kernel::ClientPort;
using Kernel::ServerPort;
@@ -176,6 +178,8 @@ void Init() {
PCTL::InstallInterfaces(*SM::g_service_manager);
Time::InstallInterfaces(*SM::g_service_manager);
VI::InstallInterfaces(*SM::g_service_manager);
BSD::InstallInterfaces(*SM::g_service_manager);
Sfdnsres::InstallInterfaces(*SM::g_service_manager);
LOG_DEBUG(Service, "initialized OK");
}

View File

@@ -0,0 +1,21 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/service/sfdnsres/sfdnsres.h"
namespace Service {
namespace Sfdnsres {
Sfdnsres::Sfdnsres() : ServiceFramework("sfdnsres") {
/*static const FunctionInfo functions[] = {
};
RegisterHandlers(functions);*/
}
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<Sfdnsres>()->InstallAsService(service_manager);
}
} // namespace Sfdnsres
} // namespace Service

View File

@@ -0,0 +1,24 @@
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/kernel/hle_ipc.h"
#include "core/hle/service/service.h"
namespace Service {
namespace Sfdnsres {
class Sfdnsres final : public ServiceFramework<Sfdnsres> {
public:
Sfdnsres();
~Sfdnsres() = default;
private:
};
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace Sfdnsres
} // namespace Service