fssrv: flesh out the program registry
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <stratosphere/fs/fs_common.hpp>
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/ncm/ncm_ids.hpp>
|
||||
|
||||
namespace ams::fs {
|
||||
|
||||
|
||||
@@ -41,6 +41,16 @@ namespace ams::fssrv {
|
||||
|
||||
Result RegisterProgramInfo(u64 process_id, u64 program_id, u8 storage_id, const void *data, s64 data_size, const void *desc, s64 desc_size);
|
||||
Result UnregisterProgramInfo(u64 process_id);
|
||||
|
||||
Result ResetProgramIndexMapInfo(const fs::ProgramIndexMapInfo *infos, int count);
|
||||
|
||||
Result GetProgramInfo(std::shared_ptr<impl::ProgramInfo> *out, u64 process_id);
|
||||
Result GetProgramInfoByProgramId(std::shared_ptr<impl::ProgramInfo> *out, u64 program_id);
|
||||
|
||||
size_t GetProgramIndexMapInfoCount();
|
||||
util::optional<fs::ProgramIndexMapInfo> GetProgramIndexMapInfo(const ncm::ProgramId &program_id);
|
||||
|
||||
ncm::ProgramId GetProgramIdByIndex(const ncm::ProgramId &program_id, u8 index);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user