libnx/nx/include/switch/services/ectx.h
2020-12-03 10:13:00 -08:00

26 lines
679 B
C

/**
* @file ectx.h
* @brief Error Context services IPC wrapper.
* @author SciresM
* @copyright libnx Authors
*/
#pragma once
#include "../types.h"
#include "../kernel/event.h"
#include "../sf/service.h"
/// [11.0.0+] Initialize ectx:r.
Result ectxrInitialize(void);
/// Exit ectx:r.
void ectxrExit(void);
/// Gets the Service object for the actual ectx:r service session.
Service* ectxrGetServiceSession(void);
/**
* @brief [11.0.0+] Retrieves the error context associated with an error descriptor and result.
* @return Result code.
*/
Result ectxrPullContext(s32 *out0, u32 *out_total_size, u32 *out_size, void *dst, size_t dst_size, u32 descriptor, Result result);