service: bcat: Stub CreateDeliveryCacheStorageService

This commit is contained in:
german77 2022-10-25 00:30:58 -05:00 committed by Billy Laws
parent 80b65d5094
commit b6e2fb894c
5 changed files with 41 additions and 2 deletions

View File

@ -281,8 +281,9 @@ add_library(skyline SHARED
${source_DIR}/skyline/services/am/storage/IStorageAccessor.cpp
${source_DIR}/skyline/services/am/applet/ILibraryAppletAccessor.cpp
${source_DIR}/skyline/services/am/applet/IApplet.cpp
${source_DIR}/skyline/services/bcat/IServiceCreator.cpp
${source_DIR}/skyline/services/bcat/IBcatService.cpp
${source_DIR}/skyline/services/bcat/IDeliveryCacheStorageService.cpp
${source_DIR}/skyline/services/bcat/IServiceCreator.cpp
${source_DIR}/skyline/services/bt/IBluetoothUser.cpp
${source_DIR}/skyline/services/btm/IBtmUser.cpp
${source_DIR}/skyline/services/btm/IBtmUserCore.cpp

View File

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

View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/)
#pragma once
#include <services/serviceman.h>
namespace skyline::service::bcat {
/**
* @brief IDeliveryCacheStorageService is used to create files instances for BCAT
* @url https://switchbrew.org/wiki/BCAT_services#IDeliveryCacheStorageService
*/
class IDeliveryCacheStorageService : public BaseService {
public:
IDeliveryCacheStorageService(const DeviceState &state, ServiceManager &manager);
};
}

View File

@ -10,4 +10,9 @@ namespace skyline::service::bcat {
manager.RegisterService(SRVREG(IBcatService), session, response);
return {};
}
Result IServiceCreator::CreateDeliveryCacheStorageService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
manager.RegisterService(SRVREG(IDeliveryCacheStorageService), session, response);
return {};
}
}

View File

@ -5,6 +5,7 @@
#include <services/serviceman.h>
#include "IBcatService.h"
#include "IDeliveryCacheStorageService.h"
namespace skyline::service::bcat {
/**
@ -21,8 +22,15 @@ namespace skyline::service::bcat {
*/
Result CreateBcatService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Takes an input u64 ProcessId, returns an #IDeliveryCacheStorageService
* @url https://switchbrew.org/wiki/BCAT_services#bcat:a.2C_bcat:m.2C_bcat:u.2C_bcat:s
*/
Result CreateDeliveryCacheStorageService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IServiceCreator, CreateBcatService)
SFUNC(0x0, IServiceCreator, CreateBcatService),
SFUNC(0x1, IServiceCreator, CreateDeliveryCacheStorageService)
)
};
}