PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspsysevent.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspsysevent.h - Prototypes for the sceSysEventForKernel library
7 *
8 * Copyright (c) 2007 Iaroslav Gaponenko <adrahil@gmail.com>
9 *
10 */
11#ifndef __PSPSYSEVENT_H__
12#define __PSPSYSEVENT_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
19
20typedef int (*PspSysEventHandlerFunc)(int ev_id, char* ev_name, void* param, int* result);
21
22typedef struct PspSysEventHandler{
23 int size;
24 char* name;
26 int (*handler)(int ev_id, char* ev_name, void* param, int* result);
27 int r28;
28 int busy;
30 int reserved[9];
32
33
47
48
55
56
64
65
73
74
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
88
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.
int sceKernelUnregisterSysEventHandler(PspSysEventHandler *handler)
Unregister a SysEvent handler.
int(* PspSysEventHandlerFunc)(int ev_id, char *ev_name, void *param, int *result)
Definition pspsysevent.h:20
int sceKernelRegisterSysEventHandler(PspSysEventHandler *handler)
Register a SysEvent handler.
PspSysEventHandler * sceKernelReferSysEventHandler(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.
float x
Definition psptypes.h:0
Definition pspsysevent.h:22
int type_mask
Definition pspsysevent.h:25
int reserved[9]
Definition pspsysevent.h:30
int busy
Definition pspsysevent.h:28
int r28
Definition pspsysevent.h:27
_PspSysEventHandler * next
Definition pspsysevent.h:29
int(* handler)(int ev_id, char *ev_name, void *param, int *result)
Definition pspsysevent.h:26
char * name
Definition pspsysevent.h:24
int size
Definition pspsysevent.h:23