wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
SYSAPP Arguments
Collaboration diagram for SYSAPP Arguments:

Data Structures

struct  SYSArgDataBlock
 
struct  SYSCallerInfo
 
struct  SYSDeserializeArg
 
struct  SYSStandardArgsOut
 
struct  SYSStandardArgsIn
 
struct  SYSStandardArgs
 
union  SYSArgDataBlock.__unnamed51__
 
struct  SYSArgDataBlock.__unnamed51__.data
 
struct  SYSArgDataBlock.__unnamed51__.string
 

Typedefs

typedef uint32_t SYSArgID
 
typedef uint32_t SYSArgType
 
typedef struct SYSArgDataBlock SYSArgDataBlock
 
typedef struct SYSCallerInfo SYSCallerInfo
 
typedef struct SYSDeserializeArg SYSDeserializeArg
 
typedef struct SYSStandardArgs SYSStandardArgs
 
typedef struct SYSStandardArgsIn SYSStandardArgsIn
 
typedef struct SYSStandardArgsOut SYSStandardArgsOut
 
typedef void(* SYSDeserializeCallback) (SYSDeserializeArg *arg, void *userArg)
 
typedef enum SYSArgIDEnum SYSArgIDEnum
 
typedef enum SYSArgTypeEnum SYSArgTypeEnum
 

Enumerations

enum  SYSArgIDEnum {
  SYS_ARG_ID_END = 0x0 ,
  SYS_ARG_ID_ANCHOR = 0x64 ,
  SYS_ARG_ID_RESULT = 0x65 ,
  SYS_ARG_ID_URL = 0xc8 ,
  SYS_ARG_ID_MIV_DATA = 0x12c ,
  SYS_ARG_ID_JOIN_PID = 0x190
}
 
enum  SYSArgTypeEnum {
  SYS_ARG_TYPE_UINT32 = 1 ,
  SYS_ARG_TYPE_UINT64 = 2 ,
  SYS_ARG_TYPE_DATA = 3 ,
  SYS_ARG_TYPE_STRING = 4
}
 

Functions

int32_t SYSGetArguments (SYSArgDataBlock *args, SYSCallerInfo *callerInfo)
 Gets current arguments and caller information. More...
 
int32_t SYSGetStandardArgs (SYSStandardArgs *stdArgs)
 
void SYSClearSysArgs ()
 
int32_t SYSPackArgs ()
 
int32_t SYSSerializeSysArgs (const char *argName, const void *data, uint32_t size)
 
int32_t SYSSerializeSysArgsToBuffer (char *buffer, uint32_t *bytesWritten, uint32_t bufferSize, const char *argName, const void *data, uint32_t dataSize)
 
int32_t SYSDeserializeSysArgs (SYSDeserializeCallback callback, void *userArg)
 
int32_t SYSDeserializeSysArgsFromBlock (void *block, uint32_t blockSize, SYSDeserializeCallback callback, void *userArg)
 
int32_t _SYSDirectlyReturnToCaller (SYSStandardArgsOut *arg)
 
int32_t _SYSSerializeStandardArgsIn (SYSStandardArgsIn *arg)
 
BOOL _SYSDeserializeStandardArg (SYSDeserializeArg *deserializeArg, SYSStandardArgs *standardArg)
 

Detailed Description


Data Structure Documentation

◆ SYSArgDataBlock

struct SYSArgDataBlock

Definition at line 45 of file args.h.

Data Fields
SYSArgID id
SYSArgType type
union SYSArgDataBlock __unnamed__

◆ SYSCallerInfo

struct SYSCallerInfo

Definition at line 70 of file args.h.

Data Fields
uint32_t upid
uint64_t titleID

◆ SYSDeserializeArg

struct SYSDeserializeArg

Definition at line 80 of file args.h.

Data Fields
const char * argName
uint32_t size
void * data

◆ SYSStandardArgsOut

struct SYSStandardArgsOut

Definition at line 91 of file args.h.

Data Fields
const void * data
uint32_t size

◆ SYSStandardArgsIn

struct SYSStandardArgsIn

Definition at line 100 of file args.h.

Data Fields
const char * argString
uint32_t size

◆ SYSStandardArgs

struct SYSStandardArgs

Definition at line 109 of file args.h.

Data Fields
void * anchorData
uint32_t anchorSize
void * resultData
uint32_t resultSize

◆ SYSArgDataBlock.__unnamed51__

union SYSArgDataBlock.__unnamed51__

Definition at line 49 of file args.h.

Data Fields
uint32_t uint32
uint64_t uint64
__unnamed51__ data
__unnamed51__ string

◆ SYSArgDataBlock.__unnamed51__.data

struct SYSArgDataBlock.__unnamed51__.data

Definition at line 53 of file args.h.

Data Fields
void * ptr
uint32_t size

◆ SYSArgDataBlock.__unnamed51__.string

struct SYSArgDataBlock.__unnamed51__.string

Definition at line 58 of file args.h.

Data Fields
const char * ptr
uint32_t size

Typedef Documentation

◆ SYSArgID

typedef uint32_t SYSArgID

Definition at line 15 of file args.h.

◆ SYSArgType

typedef uint32_t SYSArgType

Definition at line 16 of file args.h.

◆ SYSArgDataBlock

Definition at line 16 of file args.h.

◆ SYSCallerInfo

typedef struct SYSCallerInfo SYSCallerInfo

Definition at line 16 of file args.h.

◆ SYSDeserializeArg

Definition at line 16 of file args.h.

◆ SYSStandardArgs

Definition at line 16 of file args.h.

◆ SYSStandardArgsIn

Definition at line 16 of file args.h.

◆ SYSStandardArgsOut

Definition at line 16 of file args.h.

◆ SYSDeserializeCallback

typedef void(* SYSDeserializeCallback) (SYSDeserializeArg *arg, void *userArg)

Definition at line 25 of file args.h.

◆ SYSArgIDEnum

typedef enum SYSArgIDEnum SYSArgIDEnum

◆ SYSArgTypeEnum

Enumeration Type Documentation

◆ SYSArgIDEnum

Enumerator
SYS_ARG_ID_END 
SYS_ARG_ID_ANCHOR 
SYS_ARG_ID_RESULT 
SYS_ARG_ID_URL 
SYS_ARG_ID_MIV_DATA 
SYS_ARG_ID_JOIN_PID 

Definition at line 27 of file args.h.

◆ SYSArgTypeEnum

Enumerator
SYS_ARG_TYPE_UINT32 
SYS_ARG_TYPE_UINT64 
SYS_ARG_TYPE_DATA 
SYS_ARG_TYPE_STRING 

Definition at line 37 of file args.h.

Function Documentation

◆ SYSGetArguments()

int32_t SYSGetArguments ( SYSArgDataBlock args,
SYSCallerInfo callerInfo 
)

Gets current arguments and caller information.

Parameters
argsA pointer to one or more SYSArgDataBlocks with the id fields set to which arguments should be read. The last block should be set to SYS_ARG_ID_END .
callerInfoA pointer to write the caller information to.
Returns
0 on success.

◆ SYSGetStandardArgs()

int32_t SYSGetStandardArgs ( SYSStandardArgs stdArgs)

◆ SYSClearSysArgs()

void SYSClearSysArgs ( )

◆ SYSPackArgs()

int32_t SYSPackArgs ( )

◆ SYSSerializeSysArgs()

int32_t SYSSerializeSysArgs ( const char *  argName,
const void *  data,
uint32_t  size 
)

◆ SYSSerializeSysArgsToBuffer()

int32_t SYSSerializeSysArgsToBuffer ( char *  buffer,
uint32_t *  bytesWritten,
uint32_t  bufferSize,
const char *  argName,
const void *  data,
uint32_t  dataSize 
)

◆ SYSDeserializeSysArgs()

int32_t SYSDeserializeSysArgs ( SYSDeserializeCallback  callback,
void *  userArg 
)

◆ SYSDeserializeSysArgsFromBlock()

int32_t SYSDeserializeSysArgsFromBlock ( void *  block,
uint32_t  blockSize,
SYSDeserializeCallback  callback,
void *  userArg 
)

◆ _SYSDirectlyReturnToCaller()

int32_t _SYSDirectlyReturnToCaller ( SYSStandardArgsOut arg)

◆ _SYSSerializeStandardArgsIn()

int32_t _SYSSerializeStandardArgsIn ( SYSStandardArgsIn arg)

◆ _SYSDeserializeStandardArg()

BOOL _SYSDeserializeStandardArg ( SYSDeserializeArg deserializeArg,
SYSStandardArgs standardArg 
)