libnx
v4.8.0
include
switch
services
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.
13
Result
ectxrInitialize
(
void
);
14
15
/// Exit ectx:r.
16
void
ectxrExit
(
void
);
17
18
/// Gets the Service object for the actual ectx:r service session.
19
Service
*
ectxrGetServiceSession
(
void
);
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);
ectxrGetServiceSession
Service * ectxrGetServiceSession(void)
Gets the Service object for the actual ectx:r service session.
ectxrInitialize
Result ectxrInitialize(void)
Initialize ectx:r.
ectxrPullContext
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.
ectxrExit
void ectxrExit(void)
Exit ectx:r.
Service
Service object structure.
Definition:
service.h:14
Result
u32 Result
Function error code result type.
Definition:
types.h:44
s32
int32_t s32
32-bit signed integer.
Definition:
types.h:27
u32
uint32_t u32
32-bit unsigned integer.
Definition:
types.h:21
Generated by
1.9.1