PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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
18enum {
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
33enum {
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
42int sceDeci2Open(unsigned short protocol, void *opt, void (*handler)(int event, int param, void *opt));
43int sceDeci2Close(int s);
44int sceDeci2ReqSend(int s, char dest);
45void sceDeci2Poll(int s);
46int sceDeci2ExRecv(int s, void *buf, unsigned short len);
47int sceDeci2ExSend(int s, void *buf, unsigned short len);
48int sceDeci2ExReqSend(int s, char dest);
49int sceDeci2ExLock(int s);
50int sceDeci2ExUnLock(int s);
51int kputs(char *s);
52
53#endif // DECI2_H_