pspsdk-1.0+beta2
pspsysevent.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
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
15 extern "C" {
16 #endif
17 
19 
20 typedef int (*PspSysEventHandlerFunc)(int ev_id, char* ev_name, void* param, int* result);
21 
22 typedef struct PspSysEventHandler{
23  int size;
24  char* name;
25  int type_mask;
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 
46 int sceKernelSysEventDispatch(int ev_type_mask, int ev_id, char* ev_name, void* param, int* result, int break_nonzero, PspSysEventHandler* break_handler);
47 
48 
55 
56 
64 
65 
73 
74 
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif
88