PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspsysevent.h File Reference

Go to the source code of this file.

Data Structures

struct  PspSysEventHandler
 

Typedefs

typedef struct PspSysEventHandler _PspSysEventHandler
 
typedef int(* PspSysEventHandlerFunc) (int ev_id, char *ev_name, void *param, int *result)
 
typedef struct PspSysEventHandler PspSysEventHandler
 

Functions

int sceKernelSysEventDispatch (int ev_type_mask, int ev_id, char *ev_name, void *param, int *result, int break_nonzero, PspSysEventHandler *break_handler)
 Dispatch a SysEvent event.
 
PspSysEventHandlersceKernelReferSysEventHandler (void)
 Get the first SysEvent handler (the rest can be found with the linked list).
 
int sceKernelIsRegisterSysEventHandler (PspSysEventHandler *handler)
 Check if a SysEvent handler is registered.
 
int sceKernelRegisterSysEventHandler (PspSysEventHandler *handler)
 Register a SysEvent handler.
 
int sceKernelUnregisterSysEventHandler (PspSysEventHandler *handler)
 Unregister a SysEvent handler.
 

Typedef Documentation

◆ _PspSysEventHandler

◆ PspSysEventHandler

◆ PspSysEventHandlerFunc

typedef int(* PspSysEventHandlerFunc) (int ev_id, char *ev_name, void *param, int *result)

Function Documentation

◆ sceKernelIsRegisterSysEventHandler()

int sceKernelIsRegisterSysEventHandler ( PspSysEventHandler handler)

Check if a SysEvent handler is registered.

Parameters
handler- the handler to check
Returns
0 if the handler is not registered

◆ sceKernelReferSysEventHandler()

PspSysEventHandler * sceKernelReferSysEventHandler ( void  )

Get the first SysEvent handler (the rest can be found with the linked list).

Returns
0 on error, handler on success

◆ sceKernelRegisterSysEventHandler()

int sceKernelRegisterSysEventHandler ( PspSysEventHandler handler)

Register a SysEvent handler.

Parameters
handler- the handler to register
Returns
0 on success, < 0 on error

◆ sceKernelSysEventDispatch()

int sceKernelSysEventDispatch ( int  ev_type_mask,
int  ev_id,
char ev_name,
void param,
int result,
int  break_nonzero,
PspSysEventHandler break_handler 
)

Dispatch a SysEvent event.

Parameters
ev_type_mask- the event type mask
ev_id- the event id
ev_name- the event name
param- the pointer to the custom parameters
result- the pointer to the result
break_nonzero- set to 1 to interrupt the calling chain after the first non-zero return
break_handler- the pointer to the event handler having interrupted
Returns
0 on success, < 0 on error

◆ sceKernelUnregisterSysEventHandler()

int sceKernelUnregisterSysEventHandler ( PspSysEventHandler handler)

Unregister a SysEvent handler.

Parameters
handler- the handler to unregister
Returns
0 on success, < 0 on error