PS2SDK
PS2 Homebrew Libraries
sdrdrv.h
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #ifndef _SDRDRV_H
12 #define _SDRDRV_H
13 
14 #include <libsdr-common.h>
15 
16 typedef int (*sceSdrUserCommandFunction)(unsigned int command, void *data, int size);
17 
18 extern int sceSdrChangeThreadPriority(int priority_main, int priority_cb);
19 extern sceSdrUserCommandFunction sceSdrSetUserCommandFunction(int command, sceSdrUserCommandFunction func);
20 
21 #define sdrdrv_IMPORTS_start DECLARE_IMPORT_TABLE(sdrdrv, 1, 1)
22 #define sdrdrv_IMPORTS_end END_IMPORT_TABLE
23 
24 #define I_sceSdrChangeThreadPriority DECLARE_IMPORT(4, sceSdrChangeThreadPriority)
25 #define I_sceSdrSetUserCommandFunction DECLARE_IMPORT(5, sceSdrSetUserCommandFunction)
26 
27 #endif
libsdr-common.h