Stub nsd:u/nsd:a and sfdnsres services

This commit is contained in:
Dima 2022-10-31 18:38:46 +03:00 committed by Billy Laws
parent 01e27bd2dd
commit 9afa8b881e
6 changed files with 55 additions and 0 deletions

View File

@ -363,6 +363,8 @@ add_library(skyline SHARED
${source_DIR}/skyline/services/nim/IShopServiceAccessServerInterface.cpp ${source_DIR}/skyline/services/nim/IShopServiceAccessServerInterface.cpp
${source_DIR}/skyline/services/nim/IShopServiceAsync.cpp ${source_DIR}/skyline/services/nim/IShopServiceAsync.cpp
${source_DIR}/skyline/services/socket/bsd/IClient.cpp ${source_DIR}/skyline/services/socket/bsd/IClient.cpp
${source_DIR}/skyline/services/socket/nsd/IManager.cpp
${source_DIR}/skyline/services/socket/sfdnsres/IResolver.cpp
${source_DIR}/skyline/services/spl/IRandomInterface.cpp ${source_DIR}/skyline/services/spl/IRandomInterface.cpp
${source_DIR}/skyline/services/ssl/ISslService.cpp ${source_DIR}/skyline/services/ssl/ISslService.cpp
${source_DIR}/skyline/services/ssl/ISslContext.cpp ${source_DIR}/skyline/services/ssl/ISslContext.cpp

View File

@ -41,6 +41,8 @@
#include "nifm/IStaticService.h" #include "nifm/IStaticService.h"
#include "nim/IShopServiceAccessServerInterface.h" #include "nim/IShopServiceAccessServerInterface.h"
#include "socket/bsd/IClient.h" #include "socket/bsd/IClient.h"
#include "socket/nsd/IManager.h"
#include "socket/sfdnsres/IResolver.h"
#include "spl/IRandomInterface.h" #include "spl/IRandomInterface.h"
#include "ssl/ISslService.h" #include "ssl/ISslService.h"
#include "prepo/IPrepoService.h" #include "prepo/IPrepoService.h"
@ -114,6 +116,9 @@ namespace skyline::service {
SERVICE_CASE(nfp::IUserManager, "nfp:user") SERVICE_CASE(nfp::IUserManager, "nfp:user")
SERVICE_CASE(nifm::IStaticService, "nifm:u") SERVICE_CASE(nifm::IStaticService, "nifm:u")
SERVICE_CASE(socket::IClient, "bsd:u") SERVICE_CASE(socket::IClient, "bsd:u")
SERVICE_CASE(socket::IManager, "nsd:u")
SERVICE_CASE(socket::IManager, "nsd:a")
SERVICE_CASE(socket::IResolver, "sfdnsres")
SERVICE_CASE(spl::IRandomInterface, "csrng") SERVICE_CASE(spl::IRandomInterface, "csrng")
SERVICE_CASE(ssl::ISslService, "ssl") SERVICE_CASE(ssl::ISslService, "ssl")
SERVICE_CASE(prepo::IPrepoService, "prepo:u") SERVICE_CASE(prepo::IPrepoService, "prepo:u")

View File

@ -0,0 +1,8 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include "IManager.h"
namespace skyline::service::socket {
IManager::IManager(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
}

View File

@ -0,0 +1,16 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#pragma once
#include <services/serviceman.h>
namespace skyline::service::socket {
/**
* @url https://switchbrew.org/wiki/Sockets_services#nsd:u.2C_nsd:a
*/
class IManager : public BaseService {
public:
IManager(const DeviceState &state, ServiceManager &manager);
};
}

View File

@ -0,0 +1,8 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include "IResolver.h"
namespace skyline::service::socket {
IResolver::IResolver(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
}

View File

@ -0,0 +1,16 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#pragma once
#include <services/serviceman.h>
namespace skyline::service::socket {
/**
* @url https://switchbrew.org/wiki/Sockets_services#sfdnsres
*/
class IResolver : public BaseService {
public:
IResolver(const DeviceState &state, ServiceManager &manager);
};
}