mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 20:45:29 +03:00
service: bcat: Stub CreateDeliveryCacheStorageService
This commit is contained in:
parent
80b65d5094
commit
b6e2fb894c
@ -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
|
||||
|
@ -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) {}
|
||||
}
|
@ -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);
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user