mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-25 21:54:17 +01:00
Stub some functions in IDeliveryCacheStorageService
This commit is contained in:
parent
c53d99d393
commit
7327cdbde9
@ -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 {};
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user