2018-04-18 10:30:34 +01:00
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#include "iserviceobject.hpp"
|
|
|
|
|
2018-04-18 10:52:19 +01:00
|
|
|
enum DebugMonitorServiceCmd {
|
2018-04-18 19:10:45 +01:00
|
|
|
Dmnt_Cmd_AddTitleToLaunchQueue = 0,
|
|
|
|
Dmnt_Cmd_ClearLaunchQueue = 1,
|
|
|
|
Dmnt_Cmd_GetNsoInfo = 2
|
2018-04-18 10:52:19 +01:00
|
|
|
};
|
|
|
|
|
2018-04-18 10:30:34 +01:00
|
|
|
class DebugMonitorService : IServiceObject {
|
|
|
|
public:
|
2018-04-18 19:53:04 +01:00
|
|
|
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);
|
2018-04-18 10:30:34 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
/* Actual commands. */
|
|
|
|
Result add_title_to_launch_queue(u64 tid, const char *args, size_t args_size);
|
|
|
|
Result clear_launch_queue();
|
|
|
|
Result get_nso_info(u64 pid, void *out, size_t out_size, u32 *out_num_nsos);
|
|
|
|
};
|