mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
Stratosphere: Skeleton ldr:pm (RegisterTitle/UnregisterTitle are implemented)
This commit is contained in:
parent
30e401d125
commit
af11f9fdec
6 changed files with 106 additions and 6 deletions
24
stratosphere/loader/source/ldr_process_manager.hpp
Normal file
24
stratosphere/loader/source/ldr_process_manager.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
#include <switch.h>
|
||||
|
||||
#include "iserviceobject.hpp"
|
||||
#include "ldr_registration.hpp"
|
||||
|
||||
enum ProcessManagerServiceCmd {
|
||||
Pm_Cmd_CreateProcess = 0,
|
||||
Pm_Cmd_GetProgramInfo = 1,
|
||||
Pm_Cmd_RegisterTitle = 2,
|
||||
Pm_Cmd_UnregisterTitle = 3
|
||||
};
|
||||
|
||||
class ProcessManagerService : IServiceObject {
|
||||
public:
|
||||
Result dispatch(IpcParsedCommand *r, IpcCommand *out_c, u32 *cmd_buf, u32 cmd_id, u32 *in_rawdata, u32 in_rawdata_size, u32 *out_rawdata, u32 *out_raw_data_count);
|
||||
|
||||
private:
|
||||
/* Actual commands. */
|
||||
Result create_process();
|
||||
Result get_program_info();
|
||||
Result register_title(const Registration::TidSid *tid_sid, u64 *out_index);
|
||||
Result unregister_title(u64 index);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue