2018-06-10 08:17:00 +01:00
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#include <stratosphere.hpp>
|
|
|
|
|
|
|
|
class IMitMServiceObject : public IServiceObject {
|
2018-06-10 18:11:05 +01:00
|
|
|
protected:
|
|
|
|
Service *forward_service;
|
|
|
|
public:
|
|
|
|
IMitMServiceObject(Service *s) : forward_service(s) {
|
|
|
|
|
|
|
|
}
|
2018-06-12 23:00:09 +01:00
|
|
|
|
|
|
|
virtual void clone_to(void *o) = 0;
|
2018-06-10 08:17:00 +01:00
|
|
|
protected:
|
|
|
|
virtual ~IMitMServiceObject() { }
|
|
|
|
virtual Result dispatch(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id, u8 *pointer_buffer, size_t pointer_buffer_size) = 0;
|
2018-06-12 23:00:09 +01:00
|
|
|
virtual void postprocess(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id, u8 *pointer_buffer, size_t pointer_buffer_size) = 0;
|
2018-06-10 08:17:00 +01:00
|
|
|
virtual Result handle_deferred() = 0;
|
|
|
|
};
|