pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
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
18
typedef
struct
PspSysEventHandler
_PspSysEventHandler
;
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
;
29
_PspSysEventHandler
*
next
;
30
int
reserved
[9];
31
}
PspSysEventHandler
;
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
54
PspSysEventHandler
*
sceKernelReferSysEventHandler
(
void
);
55
56
63
int
sceKernelIsRegisterSysEventHandler
(
PspSysEventHandler
* handler);
64
65
72
int
sceKernelRegisterSysEventHandler
(
PspSysEventHandler
* handler);
73
74
81
int
sceKernelUnregisterSysEventHandler
(
PspSysEventHandler
* handler);
82
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
88
src
kernel
pspsysevent.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2