pspsysevent.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspsysevent.h - Prototypes for the sceSysEventForKernel library
00007  *
00008  * Copyright (c) 2007 Iaroslav Gaponenko <adrahil@gmail.com>
00009  *
00010  */
00011 #ifndef __PSPSYSEVENT_H__
00012 #define __PSPSYSEVENT_H__
00013  
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017  
00018 typedef struct PspSysEventHandler _PspSysEventHandler;
00019  
00020 typedef int (*PspSysEventHandlerFunc)(int ev_id, char* ev_name, void* param, int* result);
00021  
00022 typedef struct PspSysEventHandler{
00023   int size;
00024   char* name;
00025   int type_mask;
00026   int (*handler)(int ev_id, char* ev_name, void* param, int* result);
00027   int r28;
00028   int busy;
00029   _PspSysEventHandler *next;
00030   int reserved[9];
00031 }PspSysEventHandler;
00032  
00033  
00046 int sceKernelSysEventDispatch(int ev_type_mask, int ev_id, char* ev_name, void* param, int* result, int break_nonzero, PspSysEventHandler* break_handler);
00047  
00048  
00054 PspSysEventHandler* sceKernelReferSysEventHandler(void);
00055  
00056  
00063 int sceKernelIsRegisterSysEventHandler(PspSysEventHandler* handler);
00064  
00065  
00072 int sceKernelRegisterSysEventHandler(PspSysEventHandler* handler);
00073  
00074  
00081 int sceKernelUnregisterSysEventHandler(PspSysEventHandler* handler);
00082  
00083 #ifdef __cplusplus
00084 }
00085 #endif
00086  
00087 #endif
00088 

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2