sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
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
16#ifndef DECI2_H_
17#define DECI2_H_
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23enum {
24 DECI2_ERR_INVALID = -1,
25 DECI2_ERR_INVALSOCK = -2,
26 DECI2_ERR_ALREADYUSE = -3,
27 DECI2_ERR_MFILE = -4,
28 DECI2_ERR_INVALADDR = -5,
29 DECI2_ERR_PKTSIZE = -6,
30 DECI2_ERR_WOULDBLOCK = -7,
31 DECI2_ERR_ALREADYLOCK = -8,
32 DECI2_ERR_NOTLOCKED = -9,
33 DECI2_ERR_NOROUTE = -10,
34 DECI2_ERR_NOSPACE = -11,
35 DECI2_ERR_INVALHEAD = -12,
36};
37
38enum {
39 DECI2_READ = 1,
40 DECI2_READ_DONE = 2,
41 DECI2_WRITE = 3,
42 DECI2_WRITE_DONE = 4,
43 DECI2_CHSTATUS = 5,
44 DECI2_ERROR = 6,
45};
46
47int sceDeci2Open(unsigned short protocol, void *opt, void (*handler)(int event, int param, void *opt));
48int sceDeci2Close(int s);
49int sceDeci2ReqSend(int s, char dest);
50void sceDeci2Poll(int s);
51int sceDeci2ExRecv(int s, void *buf, unsigned short len);
52int sceDeci2ExSend(int s, void *buf, unsigned short len);
53int sceDeci2ExReqSend(int s, char dest);
54int sceDeci2ExLock(int s);
55int sceDeci2ExUnLock(int s);
56int kputs(char *s);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif // DECI2_H_