mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 19:32:15 +02:00
Fix documentation
This commit is contained in:
parent
b65594a060
commit
0ff59bbc18
@ -8,7 +8,6 @@
|
|||||||
#include "../types.h"
|
#include "../types.h"
|
||||||
#include "../services/applet.h"
|
#include "../services/applet.h"
|
||||||
|
|
||||||
/// Error configuration struct.
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 custom_text; ///< Whether to show a custom error message. If this is false, a default message will be shown.
|
u8 custom_text; ///< Whether to show a custom error message. If this is false, a default message will be shown.
|
||||||
u8 unk[7];
|
u8 unk[7];
|
||||||
@ -35,41 +34,41 @@ void errorClose(ErrorConfig* c);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Launches with the specified config.
|
* @brief Launches with the specified config.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
*/
|
*/
|
||||||
void errorShow(ErrorConfig* c);
|
void errorShow(ErrorConfig* c);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the first part of the error code.
|
* @brief Sets the error module.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
* @param code Code.
|
* @param code Code.
|
||||||
*/
|
*/
|
||||||
void errorConfigSetModule(ErrorConfig* c, u32 code);
|
void errorConfigSetModule(ErrorConfig* c, u32 code);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the second part of the error code.
|
* @brief Sets the error description.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
* @param code Code.
|
* @param code Code.
|
||||||
*/
|
*/
|
||||||
void errorConfigSetDescription(ErrorConfig* c, u32 code);
|
void errorConfigSetDescription(ErrorConfig* c, u32 code);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets whether to use a custom error message.
|
* @brief Sets whether to use a custom error message.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
* @param custom_text Whether to use a custom message.
|
* @param custom_text Whether to use a custom message.
|
||||||
*/
|
*/
|
||||||
void errorConfigSetCustomText(ErrorConfig* c, bool custom_text);
|
void errorConfigSetCustomText(ErrorConfig* c, bool custom_text);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the short description.
|
* @brief Sets the short description.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
* @param str Description.
|
* @param str Description.
|
||||||
*/
|
*/
|
||||||
void errorConfigSetShortDescription(ErrorConfig* c, const char* str);
|
void errorConfigSetShortDescription(ErrorConfig* c, const char* str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the detailed description.
|
* @brief Sets the detailed description.
|
||||||
* @param c ErrorConfig struct
|
* @param c ErrorConfig struct.
|
||||||
* @param str Description.
|
* @param str Description.
|
||||||
*
|
*
|
||||||
* This gets displayed when the user clicks on "Details".
|
* This gets displayed when the user clicks on "Details".
|
||||||
|
Loading…
Reference in New Issue
Block a user