source: libfaim/aim_cbtypes.h @ 290f290

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 290f290 was 5e53c4a, checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
*** empty log message ***
  • Property mode set to 100644
File size: 6.5 KB
Line 
1/*
2 * AIM Callback Types
3 *
4 */
5#ifndef __AIM_CBTYPES_H__
6#define __AIM_CBTYPES_H__
7
8/*
9 * SNAC Families.
10 */
11#define AIM_CB_FAM_ACK 0x0000
12#define AIM_CB_FAM_GEN 0x0001
13#define AIM_CB_FAM_LOC 0x0002
14#define AIM_CB_FAM_BUD 0x0003
15#define AIM_CB_FAM_MSG 0x0004
16#define AIM_CB_FAM_ADS 0x0005
17#define AIM_CB_FAM_INV 0x0006
18#define AIM_CB_FAM_ADM 0x0007
19#define AIM_CB_FAM_POP 0x0008
20#define AIM_CB_FAM_BOS 0x0009
21#define AIM_CB_FAM_LOK 0x000a
22#define AIM_CB_FAM_STS 0x000b
23#define AIM_CB_FAM_TRN 0x000c
24#define AIM_CB_FAM_CTN 0x000d /* ChatNav */
25#define AIM_CB_FAM_CHT 0x000e /* Chat */
26#define AIM_CB_FAM_ICQ 0x0015
27#define AIM_CB_FAM_ATH 0x0017
28#define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */
29#define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */
30
31/*
32 * SNAC Family: Ack.
33 *
34 * Not really a family, but treating it as one really
35 * helps it fit into the libfaim callback structure better.
36 *
37 */
38#define AIM_CB_ACK_ACK 0x0001
39
40/*
41 * SNAC Family: General.
42 */ 
43#define AIM_CB_GEN_ERROR 0x0001
44#define AIM_CB_GEN_CLIENTREADY 0x0002
45#define AIM_CB_GEN_SERVERREADY 0x0003
46#define AIM_CB_GEN_SERVICEREQ 0x0004
47#define AIM_CB_GEN_REDIRECT 0x0005
48#define AIM_CB_GEN_RATEINFOREQ 0x0006
49#define AIM_CB_GEN_RATEINFO 0x0007
50#define AIM_CB_GEN_RATEINFOACK 0x0008
51#define AIM_CB_GEN_RATECHANGE 0x000a
52#define AIM_CB_GEN_SERVERPAUSE 0x000b
53#define AIM_CB_GEN_SERVERRESUME 0x000d
54#define AIM_CB_GEN_REQSELFINFO 0x000e
55#define AIM_CB_GEN_SELFINFO 0x000f
56#define AIM_CB_GEN_EVIL 0x0010
57#define AIM_CB_GEN_SETIDLE 0x0011
58#define AIM_CB_GEN_MIGRATIONREQ 0x0012
59#define AIM_CB_GEN_MOTD 0x0013
60#define AIM_CB_GEN_SETPRIVFLAGS 0x0014
61#define AIM_CB_GEN_WELLKNOWNURL 0x0015
62#define AIM_CB_GEN_NOP 0x0016
63#define AIM_CB_GEN_DEFAULT 0xffff
64
65/*
66 * SNAC Family: Location Services.
67 */ 
68#define AIM_CB_LOC_ERROR 0x0001
69#define AIM_CB_LOC_REQRIGHTS 0x0002
70#define AIM_CB_LOC_RIGHTSINFO 0x0003
71#define AIM_CB_LOC_SETUSERINFO 0x0004
72#define AIM_CB_LOC_REQUSERINFO 0x0005
73#define AIM_CB_LOC_USERINFO 0x0006
74#define AIM_CB_LOC_WATCHERSUBREQ 0x0007
75#define AIM_CB_LOC_WATCHERNOT 0x0008
76#define AIM_CB_LOC_DEFAULT 0xffff
77
78/*
79 * SNAC Family: Buddy List Management Services.
80 */ 
81#define AIM_CB_BUD_ERROR 0x0001
82#define AIM_CB_BUD_REQRIGHTS 0x0002
83#define AIM_CB_BUD_RIGHTSINFO 0x0003
84#define AIM_CB_BUD_ADDBUDDY 0x0004
85#define AIM_CB_BUD_REMBUDDY 0x0005
86#define AIM_CB_BUD_REJECT 0x000a
87#define AIM_CB_BUD_ONCOMING 0x000b
88#define AIM_CB_BUD_OFFGOING 0x000c
89#define AIM_CB_BUD_DEFAULT 0xffff
90
91/*
92 * SNAC Family: Messeging Services.
93 */ 
94#define AIM_CB_MSG_ERROR 0x0001
95#define AIM_CB_MSG_PARAMINFO 0x0005
96#define AIM_CB_MSG_INCOMING 0x0007
97#define AIM_CB_MSG_EVIL 0x0009
98#define AIM_CB_MSG_MISSEDCALL 0x000a
99#define AIM_CB_MSG_CLIENTERROR 0x000b
100#define AIM_CB_MSG_ACK 0x000c
101#define AIM_CB_MSG_DEFAULT 0xffff
102
103/*
104 * SNAC Family: Advertisement Services
105 */ 
106#define AIM_CB_ADS_ERROR 0x0001
107#define AIM_CB_ADS_DEFAULT 0xffff
108
109/*
110 * SNAC Family: Invitation Services.
111 */ 
112#define AIM_CB_INV_ERROR 0x0001
113#define AIM_CB_INV_DEFAULT 0xffff
114
115/*
116 * SNAC Family: Administrative Services.
117 */ 
118#define AIM_CB_ADM_ERROR 0x0001
119#define AIM_CB_ADM_INFOCHANGE_REPLY 0x0005
120#define AIM_CB_ADM_DEFAULT 0xffff
121
122/*
123 * SNAC Family: Popup Messages
124 */ 
125#define AIM_CB_POP_ERROR 0x0001
126#define AIM_CB_POP_DEFAULT 0xffff
127
128/*
129 * SNAC Family: Misc BOS Services.
130 */ 
131#define AIM_CB_BOS_ERROR 0x0001
132#define AIM_CB_BOS_RIGHTSQUERY 0x0002
133#define AIM_CB_BOS_RIGHTS 0x0003
134#define AIM_CB_BOS_DEFAULT 0xffff
135
136/*
137 * SNAC Family: User Lookup Services
138 */ 
139#define AIM_CB_LOK_ERROR 0x0001
140#define AIM_CB_LOK_DEFAULT 0xffff
141
142/*
143 * SNAC Family: User Status Services
144 */ 
145#define AIM_CB_STS_ERROR 0x0001
146#define AIM_CB_STS_SETREPORTINTERVAL 0x0002
147#define AIM_CB_STS_REPORTACK 0x0004
148#define AIM_CB_STS_DEFAULT 0xffff
149
150/*
151 * SNAC Family: Translation Services
152 */ 
153#define AIM_CB_TRN_ERROR 0x0001
154#define AIM_CB_TRN_DEFAULT 0xffff
155
156/*
157 * SNAC Family: Chat Navigation Services
158 */ 
159#define AIM_CB_CTN_ERROR 0x0001
160#define AIM_CB_CTN_CREATE 0x0008
161#define AIM_CB_CTN_INFO 0x0009
162#define AIM_CB_CTN_DEFAULT 0xffff
163
164/*
165 * SNAC Family: Chat Services
166 */ 
167#define AIM_CB_CHT_ERROR 0x0001
168#define AIM_CB_CHT_ROOMINFOUPDATE 0x0002
169#define AIM_CB_CHT_USERJOIN 0x0003
170#define AIM_CB_CHT_USERLEAVE 0x0004
171#define AIM_CB_CHT_OUTGOINGMSG 0x0005
172#define AIM_CB_CHT_INCOMINGMSG 0x0006
173#define AIM_CB_CHT_DEFAULT 0xffff
174
175/*
176 * SNAC Family: ICQ
177 *
178 * Most of these are actually special.
179 */ 
180#define AIM_CB_ICQ_ERROR 0x0001
181#define AIM_CB_ICQ_OFFLINEMSG 0x00f0
182#define AIM_CB_ICQ_OFFLINEMSGCOMPLETE 0x00f1
183#define AIM_CB_ICQ_SIMPLEINFO 0x00f2
184#define AIM_CB_ICQ_DEFAULT 0xffff
185
186/*
187 * SNAC Family: Authorizer
188 *
189 * Used only in protocol versions three and above.
190 *
191 */
192#define AIM_CB_ATH_ERROR 0x0001
193#define AIM_CB_ATH_LOGINREQEST 0x0002
194#define AIM_CB_ATH_LOGINRESPONSE 0x0003
195#define AIM_CB_ATH_AUTHREQ 0x0006
196#define AIM_CB_ATH_AUTHRESPONSE 0x0007
197
198/*
199 * OFT Services
200 *
201 * See non-SNAC note below.
202 */
203#define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/
204#define AIM_CB_OFT_DIRECTIMINCOMING 0x0002
205#define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003
206#define AIM_CB_OFT_DIRECTIMTYPING 0x0004
207#define AIM_CB_OFT_DIRECTIMINITIATE 0x0005
208
209#define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/
210#define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */
211#define AIM_CB_OFT_GETFILEFILEREQ 0x0008    /* received file request */
212#define AIM_CB_OFT_GETFILEFILESEND 0x0009   /* received file request confirm -- send data */
213#define AIM_CB_OFT_GETFILECOMPLETE 0x000a   /* received file send complete*/
214#define AIM_CB_OFT_GETFILEINITIATE 0x000b   /* request for file get acknowledge */
215#define AIM_CB_OFT_GETFILEDISCONNECT 0x000c   /* OFT connection disconnected.*/
216#define AIM_CB_OFT_GETFILELISTING 0x000d   /* OFT listing.txt received.*/
217#define AIM_CB_OFT_GETFILERECEIVE 0x000e   /* OFT file incoming.*/
218#define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f
219#define AIM_CB_OFT_GETFILESTATE4 0x0010
220
221#define AIM_CB_OFT_SENDFILEDISCONNECT 0x0020   /* OFT connection disconnected.*/
222
223
224
225/*
226 * SNAC Family: Internal Messages
227 *
228 * This isn't truely a SNAC family either, but using
229 * these, we can integrated non-SNAC services into
230 * the SNAC-centered libfaim callback structure.
231 *
232 */ 
233#define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001
234#define AIM_CB_SPECIAL_AUTHOTHER 0x0002
235#define AIM_CB_SPECIAL_CONNERR 0x0003
236#define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004
237#define AIM_CB_SPECIAL_FLAPVER 0x0005
238#define AIM_CB_SPECIAL_CONNINITDONE 0x0006
239#define AIM_CB_SPECIAL_UNKNOWN 0xffff
240#define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN
241
242
243#endif/*__AIM_CBTYPES_H__ */
Note: See TracBrowser for help on using the repository browser.