Stub some functions in IDeliveryCacheStorageService

This commit is contained in:
PabloG02 2023-01-09 10:43:17 +01:00 committed by Billy Laws
parent c53d99d393
commit 7327cdbde9
2 changed files with 37 additions and 0 deletions

View File

@ -2,7 +2,24 @@
// Copyright © 2022 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include "IDeliveryCacheStorageService.h"
#include "IDeliveryCacheFileService.h"
#include "IDeliveryCacheDirectoryService.h"
namespace skyline::service::bcat {
IDeliveryCacheStorageService::IDeliveryCacheStorageService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
Result IDeliveryCacheStorageService::CreateFileService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
manager.RegisterService(SRVREG(IDeliveryCacheFileService), session, response);
return {};
}
Result IDeliveryCacheStorageService::CreateDirectoryService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
manager.RegisterService(SRVREG(IDeliveryCacheDirectoryService), session, response);
return {};
}
Result IDeliveryCacheStorageService::EnumerateDeliveryCacheDirectory(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push(static_cast<u32>(0));
return {};
}
}

View File

@ -13,5 +13,25 @@ namespace skyline::service::bcat {
class IDeliveryCacheStorageService : public BaseService {
public:
IDeliveryCacheStorageService(const DeviceState &state, ServiceManager &manager);
/**
* @brief Returns #IDeliveryCacheFileService
* @url https://switchbrew.org/wiki/BCAT_services#IDeliveryCacheStorageService
*/
Result CreateFileService (type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Returns #IDeliveryCacheDirectoryService
* @url https://switchbrew.org/wiki/BCAT_services#IDeliveryCacheStorageService
*/
Result CreateDirectoryService (type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result EnumerateDeliveryCacheDirectory (type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IDeliveryCacheStorageService, CreateFileService),
SFUNC(0x1, IDeliveryCacheStorageService, CreateDirectoryService),
SFUNC(0xA, IDeliveryCacheStorageService, EnumerateDeliveryCacheDirectory)
)
};
}