| ---
jacc.h (1543B)
---
1 #ifndef JACC_H
2 #define JACC_H
3
4 enum {
5 NONE = 0x00,
6 STREAM,
7 AUTH,
8 ERROR,
9 MESSAGE,
10 MESSAGE_INNER,
11 MESSAGE_HTML,
12 PRESENCE,
13 PRESENCE_STATUS,
14 PRESENCE_SHOW,
15 PRESENCE_ERROR,
16 PRESENCE_X,
17 PRESENCE_SET,
18 IQ,
19 IQ_INNER,
20 IQ_ITEM,
21 IQ_GROUP,
22 IQ_VCARD,
23 IQ_VCARD_INNER,
24 IQ_ERROR,
25 IQ_DISCO,
26 IQ_DISCO_IDENT,
27 IQ_DISCO_FEATU,
28 IQ_DISCO_ITEM,
29 IQ_DISCO_EMPTY,
30 IQ_VERSION,
31 IQ_VERSION_OS,
32 IQ_VERSION_NAME,
33 IQ_VERSION_VER,
34 IQ_TIME,
35 IQ_TIME_UTC,
36 IQ_TIME_TZ,
37 IQ_TIME_DISPLAY,
38 IQ_AGENTS,
39 IQ_AGENTS_AGENT,
40 IQ_AGENTS_NAME,
41 IQ_AGENTS_DESC,
42 IQ_AGENTS_SERV,
43 IQ_LAST,
44 ROSTER,
45 ROSTER_INNER,
46 ROSTER_GROUP,
47 END
48 };
49
50 int xmljacc(int sock);
51 int loginjacc(int sock, char *serv);
52 int userjacc(int sock, char *user, char *pass, char *res);
53 int versionjacc(int sock, char *from, char *to, char *id);
54 int featuresjacc(int sock, char *from, char *to, char *id);
55 int timejacc(int sock, char *from, char *to, char *id);
56 int lastjacc(int sock, char *from, char *to, char *id, int d);
57 int registerjacc(int sock, char *serv, char *user, char *pass);
58 int vcardgetjacc(int sock, char *from, char *type);
59 int vcardsetjacc(int sock, char *from, int fd);
60 int presencejacc(int sock, char *stat, char *show, char *from, char *to);
61 int presencetypejacc(int sock, char *from, char *to, char *type);
62 int rosterjacc(int sock);
63 int messagejacc(int sock, char *from, char *to, char *msg, char *type);
64 int addbuddyjacc(int sock, char *jid, char *na, char *type);
65 int delbuddyjacc(int sock, char *jid);
66 int xmlnsjacc(int sock, char *who, char *t, char *id);
67
68 #endif
69 |