PS2SDK
PS2 Homebrew Libraries
deci2.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Licenced under Academic Free License version 2.0
7 # Review ps2sdk README & LICENSE files for further details.
8 */
9 
15 #ifndef DECI2_H_
16 #define DECI2_H_
17 
18 enum {
19  DECI2_ERR_INVALID = -1,
20  DECI2_ERR_INVALSOCK = -2,
21  DECI2_ERR_ALREADYUSE = -3,
22  DECI2_ERR_MFILE = -4,
23  DECI2_ERR_INVALADDR = -5,
24  DECI2_ERR_PKTSIZE = -6,
25  DECI2_ERR_WOULDBLOCK = -7,
26  DECI2_ERR_ALREADYLOCK = -8,
27  DECI2_ERR_NOTLOCKED = -9,
28  DECI2_ERR_NOROUTE = -10,
29  DECI2_ERR_NOSPACE = -11,
30  DECI2_ERR_INVALHEAD = -12,
31 };
32 
33 enum {
34  DECI2_READ = 1,
35  DECI2_READ_DONE = 2,
36  DECI2_WRITE = 3,
37  DECI2_WRITE_DONE = 4,
38  DECI2_CHSTATUS = 5,
39  DECI2_ERROR = 6,
40 };
41 
42 int sceDeci2Open(unsigned short protocol, void *opt, void (*handler)(int event, int param, void *opt));
43 int sceDeci2Close(int s);
44 int sceDeci2ReqSend(int s, char dest);
45 void sceDeci2Poll(int s);
46 int sceDeci2ExRecv(int s, void *buf, unsigned short len);
47 int sceDeci2ExSend(int s, void *buf, unsigned short len);
48 int sceDeci2ExReqSend(int s, char dest);
49 int sceDeci2ExLock(int s);
50 int sceDeci2ExUnLock(int s);
51 int kputs(char *s);
52 
53 #endif // DECI2_H_
event
Definition: thcommon.h:71