libnx  v4.7.0
ectx.h
Go to the documentation of this file.
1 /**
2  * @file ectx.h
3  * @brief [11.0.0+] Error Context services IPC wrapper.
4  * @author SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../kernel/event.h"
10 #include "../sf/service.h"
11 
12 /// Initialize ectx:r.
14 
15 /// Exit ectx:r.
16 void ectxrExit(void);
17 
18 /// Gets the Service object for the actual ectx:r service session.
20 
21 /**
22  * @brief Retrieves the error context associated with an error descriptor and result.
23  * @param[out] out0 Output value.
24  * @param[out] out_total_size Total error context size.
25  * @param[out] out_size Error context size.
26  * @param[out] dst Buffer for output error context.
27  * @param[in] dst_size Buffer size for output error context.
28  * @param[in] descriptor Error descriptor.
29  * @param[in] result Error result.
30  * @return Result code.
31  */
32 Result ectxrPullContext(s32 *out0, u32 *out_total_size, u32 *out_size, void *dst, size_t dst_size, u32 descriptor, Result result);
Service * ectxrGetServiceSession(void)
Gets the Service object for the actual ectx:r service session.
Result ectxrInitialize(void)
Initialize ectx:r.
Result ectxrPullContext(s32 *out0, u32 *out_total_size, u32 *out_size, void *dst, size_t dst_size, u32 descriptor, Result result)
Retrieves the error context associated with an error descriptor and result.
void ectxrExit(void)
Exit ectx:r.
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21