]> andersk Git - libfaim.git/blame - faim/aim_cbtypes.h
- Tue Dec 12 23:02:41 UTC 2000
[libfaim.git] / faim / aim_cbtypes.h
CommitLineData
bd71fa88 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 */
01b59e1e 26#define AIM_CB_FAM_ATH 0x0017
7392c79f 27#define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */
bd71fa88 28#define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */
29
30/*
31 * SNAC Family: Ack.
32 *
33 * Not really a family, but treating it as one really
34 * helps it fit into the libfaim callback structure better.
35 *
36 */
37#define AIM_CB_ACK_ACK 0x0001
38
39/*
40 * SNAC Family: General.
41 */
42#define AIM_CB_GEN_ERROR 0x0001
43#define AIM_CB_GEN_CLIENTREADY 0x0002
44#define AIM_CB_GEN_SERVERREADY 0x0003
45#define AIM_CB_GEN_SERVICEREQ 0x0004
46#define AIM_CB_GEN_REDIRECT 0x0005
47#define AIM_CB_GEN_RATEINFOREQ 0x0006
48#define AIM_CB_GEN_RATEINFO 0x0007
49#define AIM_CB_GEN_RATEINFOACK 0x0008
50#define AIM_CB_GEN_RATECHANGE 0x000a
51#define AIM_CB_GEN_SERVERPAUSE 0x000b
52#define AIM_CB_GEN_SERVERRESUME 0x000d
53#define AIM_CB_GEN_REQSELFINFO 0x000e
54#define AIM_CB_GEN_SELFINFO 0x000f
55#define AIM_CB_GEN_EVIL 0x0010
56#define AIM_CB_GEN_SETIDLE 0x0011
57#define AIM_CB_GEN_MIGRATIONREQ 0x0012
58#define AIM_CB_GEN_MOTD 0x0013
59#define AIM_CB_GEN_SETPRIVFLAGS 0x0014
60#define AIM_CB_GEN_WELLKNOWNURL 0x0015
61#define AIM_CB_GEN_NOP 0x0016
62#define AIM_CB_GEN_DEFAULT 0xffff
63
64/*
65 * SNAC Family: Location Services.
66 */
67#define AIM_CB_LOC_ERROR 0x0001
68#define AIM_CB_LOC_REQRIGHTS 0x0002
69#define AIM_CB_LOC_RIGHTSINFO 0x0003
70#define AIM_CB_LOC_SETUSERINFO 0x0004
71#define AIM_CB_LOC_REQUSERINFO 0x0005
72#define AIM_CB_LOC_USERINFO 0x0006
73#define AIM_CB_LOC_WATCHERSUBREQ 0x0007
74#define AIM_CB_LOC_WATCHERNOT 0x0008
75#define AIM_CB_LOC_DEFAULT 0xffff
76
77/*
78 * SNAC Family: Buddy List Management Services.
79 */
80#define AIM_CB_BUD_ERROR 0x0001
81#define AIM_CB_BUD_REQRIGHTS 0x0002
82#define AIM_CB_BUD_RIGHTSINFO 0x0003
83#define AIM_CB_BUD_ADDBUDDY 0x0004
84#define AIM_CB_BUD_REMBUDDY 0x0005
85#define AIM_CB_BUD_REJECT 0x000a
86#define AIM_CB_BUD_ONCOMING 0x000b
87#define AIM_CB_BUD_OFFGOING 0x000c
88#define AIM_CB_BUD_DEFAULT 0xffff
89
90/*
91 * SNAC Family: Messeging Services.
92 */
93#define AIM_CB_MSG_ERROR 0x0001
94#define AIM_CB_MSG_PARAMINFO 0x0005
95#define AIM_CB_MSG_INCOMING 0x0007
96#define AIM_CB_MSG_EVIL 0x0009
97#define AIM_CB_MSG_MISSEDCALL 0x000a
98#define AIM_CB_MSG_CLIENTERROR 0x000b
99#define AIM_CB_MSG_ACK 0x000c
100#define AIM_CB_MSG_DEFAULT 0xffff
101
102/*
103 * SNAC Family: Advertisement Services
104 */
105#define AIM_CB_ADS_ERROR 0x0001
106#define AIM_CB_ADS_DEFAULT 0xffff
107
108/*
109 * SNAC Family: Invitation Services.
110 */
111#define AIM_CB_INV_ERROR 0x0001
112#define AIM_CB_INV_DEFAULT 0xffff
113
114/*
115 * SNAC Family: Administrative Services.
116 */
117#define AIM_CB_ADM_ERROR 0x0001
118#define AIM_CB_ADM_INFOCHANGE_REPLY 0x0005
119#define AIM_CB_ADM_DEFAULT 0xffff
120
121/*
122 * SNAC Family: Popup Messages
123 */
124#define AIM_CB_POP_ERROR 0x0001
125#define AIM_CB_POP_DEFAULT 0xffff
126
127/*
128 * SNAC Family: Misc BOS Services.
129 */
130#define AIM_CB_BOS_ERROR 0x0001
131#define AIM_CB_BOS_DEFAULT 0xffff
132
133/*
134 * SNAC Family: User Lookup Services
135 */
136#define AIM_CB_LOK_ERROR 0x0001
137#define AIM_CB_LOK_DEFAULT 0xffff
138
139/*
140 * SNAC Family: User Status Services
141 */
142#define AIM_CB_STS_ERROR 0x0001
143#define AIM_CB_STS_SETREPORTINTERVAL 0x0002
144#define AIM_CB_STS_REPORTACK 0x0004
145#define AIM_CB_STS_DEFAULT 0xffff
146
147/*
148 * SNAC Family: Translation Services
149 */
150#define AIM_CB_TRN_ERROR 0x0001
151#define AIM_CB_TRN_DEFAULT 0xffff
152
153/*
154 * SNAC Family: Chat Navigation Services
155 */
156#define AIM_CB_CTN_ERROR 0x0001
0c20631f 157#define AIM_CB_CTN_CREATE 0x0008
158#define AIM_CB_CTN_INFO 0x0009
bd71fa88 159#define AIM_CB_CTN_DEFAULT 0xffff
160
161/*
162 * SNAC Family: Chat Services
163 */
164#define AIM_CB_CHT_ERROR 0x0001
0c20631f 165#define AIM_CB_CHT_ROOMINFOUPDATE 0x0002
166#define AIM_CB_CHT_USERJOIN 0x0003
167#define AIM_CB_CHT_USERLEAVE 0x0004
168#define AIM_CB_CHT_OUTGOINGMSG 0x0005
169#define AIM_CB_CHT_INCOMINGMSG 0x0006
bd71fa88 170#define AIM_CB_CHT_DEFAULT 0xffff
171
01b59e1e 172/*
173 * SNAC Family: Authorizer
174 *
175 * Used only in protocol versions three and above.
176 *
177 */
178#define AIM_CB_ATH_ERROR 0x0001
179#define AIM_CB_ATH_LOGINREQEST 0x0002
180#define AIM_CB_ATH_LOGINRESPONSE 0x0003
181#define AIM_CB_ATH_AUTHREQ 0x0006
182#define AIM_CB_ATH_AUTHRESPONSE 0x0007
183
7392c79f 184/*
185 * OFT Services
186 *
187 * See non-SNAC note below.
188 */
871e2fd0 189#define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/
7392c79f 190#define AIM_CB_OFT_DIRECTIMINCOMING 0x0002
191#define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003
871e2fd0 192#define AIM_CB_OFT_DIRECTIMTYPING 0x0004
193#define AIM_CB_OFT_DIRECTIMINITIATE 0x0005
194
195#define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/
196#define AIM_CB_OFT_GETFILEFILEREQ 0x0007 /* recieved file request */
197#define AIM_CB_OFT_GETFILEFILESEND 0x0008 /* recieved file request confirm -- send data */
198#define AIM_CB_OFT_GETFILECOMPLETE 0x0009 /* recieved file send complete*/
199#define AIM_CB_OFT_GETFILEINITIATE 0x000a /* request for file get acknowledge */
200#define AIM_CB_OFT_GETFILEDISCONNECT 0x000b /* OFT connection disconnected.*/
201
202#define AIM_CB_OFT_SENDFILEDISCONNECT 0x000c /* OFT connection disconnected.*/
203
7392c79f 204
7392c79f 205
bd71fa88 206/*
207 * SNAC Family: Internal Messages
208 *
209 * This isn't truely a SNAC family either, but using
210 * these, we can integrated non-SNAC services into
211 * the SNAC-centered libfaim callback structure.
212 *
213 */
214#define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001
215#define AIM_CB_SPECIAL_AUTHOTHER 0x0002
5e02cf44 216#define AIM_CB_SPECIAL_CONNERR 0x0003
22517493 217#define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004
218#define AIM_CB_SPECIAL_FLAPVER 0x0005
e5012450 219#define AIM_CB_SPECIAL_DEBUGCONN_CONNECT 0xe001
bd71fa88 220#define AIM_CB_SPECIAL_UNKNOWN 0xffff
221#define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN
222
223
224#endif/*__AIM_CBTYPES_H__ */
This page took 1.992124 seconds and 5 git commands to generate.