mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
err: add ErrorContextType enum
This commit is contained in:
parent
e2db987144
commit
e36c7a760f
@ -25,9 +25,18 @@ typedef struct {
|
|||||||
u32 desc; ///< The error description.
|
u32 desc; ///< The error description.
|
||||||
} ErrorCode;
|
} ErrorCode;
|
||||||
|
|
||||||
|
/// Error type for ErrorContext.type
|
||||||
|
typedef enum {
|
||||||
|
ErrorContextType_None = 0, ///< None
|
||||||
|
ErrorContextType_Http = 1, ///< Http
|
||||||
|
ErrorContextType_FileSystem = 2, ///< FileSystem
|
||||||
|
ErrorContextType_WebMediaPlayer = 3, ///< WebMediaPlayer
|
||||||
|
ErrorContextType_LocalContentShare = 4, ///< LocalContentShare
|
||||||
|
} ErrorContextType;
|
||||||
|
|
||||||
/// Error context.
|
/// Error context.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 type; ///< Type
|
u8 type; ///< Type, see \ref ErrorContextType.
|
||||||
u8 pad[7]; ///< Padding
|
u8 pad[7]; ///< Padding
|
||||||
u8 data[0x1f4]; ///< Data
|
u8 data[0x1f4]; ///< Data
|
||||||
Result res; ///< Result
|
Result res; ///< Result
|
||||||
|
Loading…
Reference in New Issue
Block a user