Mercurial > pidgin
comparison src/protocols/oscar/snactypes.h @ 13234:f2431a7e33aa
[gaim-migrate @ 15600]
Massive oscar shuffling. No change in functionality.
I renamed each of the files that contains stuff for a SNAC family.
I started splitting the file transfer/direct connect stuff into
peer.c and peer.h. I stopped using fu8_t, fu16_t and fu32_t and
switched to guint8, guint16 and guint32 instead. I changed the
SNAC family and subtype defines so they are more meaningful.
Added LGPL copyright header to each file. Added myself to the
AUTHORS file.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 11 Feb 2006 21:45:18 +0000 |
parents | |
children | e9802db22b06 |
comparison
equal
deleted
inserted
replaced
13233:f09c6e8df82c | 13234:f2431a7e33aa |
---|---|
1 /* | |
2 * Gaim's oscar protocol plugin | |
3 * This file is the legal property of its developers. | |
4 * Please see the AUTHORS file distributed alongside this file. | |
5 * | |
6 * This library is free software; you can redistribute it and/or | |
7 * modify it under the terms of the GNU Lesser General Public | |
8 * License as published by the Free Software Foundation; either | |
9 * version 2 of the License, or (at your option) any later version. | |
10 * | |
11 * This library is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 * Lesser General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU Lesser General Public | |
17 * License along with this library; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 */ | |
20 | |
21 /* | |
22 * AIM Callback Types | |
23 * | |
24 */ | |
25 #ifndef _SNACTYPES_H_ | |
26 #define _SNACTYPES_H_ | |
27 | |
28 /* | |
29 * SNAC Families. | |
30 */ | |
31 #define AIM_CB_FAM_ACK 0x0000 | |
32 #define OSCAR_FAMILY_OSERVICE 0x0001 | |
33 #define OSCAR_FAMILY_LOCATE 0x0002 | |
34 #define OSCAR_FAMILY_BUDDY 0x0003 | |
35 #define OSCAR_FAMILY_ICBM 0x0004 | |
36 #define OSCAR_FAMILY_ADVERT 0x0005 | |
37 #define OSCAR_FAMILY_INVITE 0x0006 | |
38 #define OSCAR_FAMILY_ADMIN 0x0007 | |
39 #define OSCAR_FAMILY_POPUP 0x0008 | |
40 #define OSCAR_FAMILY_BOS 0x0009 | |
41 #define OSCAR_FAMILY_USERLOOKUP 0x000a | |
42 #define OSCAR_FAMILY_STATS 0x000b | |
43 #define OSCAR_FAMILY_TRANSLATE 0x000c | |
44 #define OSCAR_FAMILY_CHATNAV 0x000d | |
45 #define OSCAR_FAMILY_CHAT 0x000e | |
46 #define OSCAR_FAMILY_ODIR 0x000f | |
47 #define OSCAR_FAMILY_BART 0x0010 | |
48 #define OSCAR_FAMILY_FEEDBAG 0x0013 | |
49 #define OSCAR_FAMILY_ICQ 0x0015 | |
50 #define OSCAR_FAMILY_AUTH 0x0017 | |
51 #define OSCAR_FAMILY_ALERT 0x0018 | |
52 | |
53 #define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */ | |
54 | |
55 /* | |
56 * SNAC Family: Ack. | |
57 * | |
58 * Not really a family, but treating it as one really | |
59 * helps it fit into the libfaim callback structure better. | |
60 * | |
61 */ | |
62 #define AIM_CB_ACK_ACK 0x0001 | |
63 | |
64 /* | |
65 * SNAC Family: General. | |
66 */ | |
67 #define OSCAR_SUBTYPE_OSERVICE_ERROR 0x0001 | |
68 #define OSCAR_SUBTYPE_OSERVICE_CLIENTREADY 0x0002 | |
69 #define OSCAR_SUBTYPE_OSERVICE_SERVERREADY 0x0003 | |
70 #define OSCAR_SUBTYPE_OSERVICE_SERVICEREQ 0x0004 | |
71 #define OSCAR_SUBTYPE_OSERVICE_REDIRECT 0x0005 | |
72 #define OSCAR_SUBTYPE_OSERVICE_RATEINFOREQ 0x0006 | |
73 #define OSCAR_SUBTYPE_OSERVICE_RATEINFO 0x0007 | |
74 #define OSCAR_SUBTYPE_OSERVICE_RATEINFOACK 0x0008 | |
75 #define OSCAR_SUBTYPE_OSERVICE_RATECHANGE 0x000a | |
76 #define OSCAR_SUBTYPE_OSERVICE_SERVERPAUSE 0x000b | |
77 #define OSCAR_SUBTYPE_OSERVICE_SERVERRESUME 0x000d | |
78 #define OSCAR_SUBTYPE_OSERVICE_REQSELFINFO 0x000e | |
79 #define OSCAR_SUBTYPE_OSERVICE_SELFINFO 0x000f | |
80 #define OSCAR_SUBTYPE_OSERVICE_EVIL 0x0010 | |
81 #define OSCAR_SUBTYPE_OSERVICE_SETIDLE 0x0011 | |
82 #define OSCAR_SUBTYPE_OSERVICE_MIGRATIONREQ 0x0012 | |
83 #define OSCAR_SUBTYPE_OSERVICE_MOTD 0x0013 | |
84 #define OSCAR_SUBTYPE_OSERVICE_SETPRIVFLAGS 0x0014 | |
85 #define OSCAR_SUBTYPE_OSERVICE_WELLKNOWNURL 0x0015 | |
86 #define OSCAR_SUBTYPE_OSERVICE_NOP 0x0016 | |
87 #define OSCAR_SUBTYPE_OSERVICE_DEFAULT 0xffff | |
88 | |
89 /* | |
90 * SNAC Family: Location Services. | |
91 */ | |
92 #define OSCAR_SUBTYPE_LOCATE_ERROR 0x0001 | |
93 #define OSCAR_SUBTYPE_LOCATE_REQRIGHTS 0x0002 | |
94 #define OSCAR_SUBTYPE_LOCATE_RIGHTSINFO 0x0003 | |
95 #define OSCAR_SUBTYPE_LOCATE_SETUSERINFO 0x0004 | |
96 #define OSCAR_SUBTYPE_LOCATE_REQUSERINFO 0x0005 | |
97 #define OSCAR_SUBTYPE_LOCATE_USERINFO 0x0006 | |
98 #define OSCAR_SUBTYPE_LOCATE_WATCHERSUBREQ 0x0007 | |
99 #define OSCAR_SUBTYPE_LOCATE_WATCHERNOT 0x0008 | |
100 #define OSCAR_SUBTYPE_LOCATE_GOTINFOBLOCK 0xfffd | |
101 #define OSCAR_SUBTYPE_LOCATE_REQUESTINFOTIMEOUT 0xfffe | |
102 #define OSCAR_SUBTYPE_LOCATE_DEFAULT 0xffff | |
103 | |
104 /* | |
105 * SNAC Family: Buddy List Management Services. | |
106 */ | |
107 #define OSCAR_SUBTYPE_BUDDY_ERROR 0x0001 | |
108 #define OSCAR_SUBTYPE_BUDDY_REQRIGHTS 0x0002 | |
109 #define OSCAR_SUBTYPE_BUDDY_RIGHTSINFO 0x0003 | |
110 #define OSCAR_SUBTYPE_BUDDY_ADDBUDDY 0x0004 | |
111 #define OSCAR_SUBTYPE_BUDDY_REMBUDDY 0x0005 | |
112 #define OSCAR_SUBTYPE_BUDDY_REJECT 0x000a | |
113 #define OSCAR_SUBTYPE_BUDDY_ONCOMING 0x000b | |
114 #define OSCAR_SUBTYPE_BUDDY_OFFGOING 0x000c | |
115 #define OSCAR_SUBTYPE_BUDDY_DEFAULT 0xffff | |
116 | |
117 /* | |
118 * SNAC Family: Messaging Services. | |
119 */ | |
120 #define OSCAR_SUBTYPE_ICBM_ERROR 0x0001 | |
121 #define OSCAR_SUBTYPE_ICBM_PARAMINFO 0x0005 | |
122 #define OSCAR_SUBTYPE_ICBM_INCOMING 0x0007 | |
123 #define OSCAR_SUBTYPE_ICBM_EVIL 0x0009 | |
124 #define OSCAR_SUBTYPE_ICBM_MISSEDCALL 0x000a | |
125 #define OSCAR_SUBTYPE_ICBM_CLIENTAUTORESP 0x000b | |
126 #define OSCAR_SUBTYPE_ICBM_ACK 0x000c | |
127 #define OSCAR_SUBTYPE_ICBM_MTN 0x0014 | |
128 #define OSCAR_SUBTYPE_ICBM_DEFAULT 0xffff | |
129 | |
130 /* | |
131 * SNAC Family: Advertisement Services | |
132 */ | |
133 #define OSCAR_SUBTYPE_ADVERT_ERROR 0x0001 | |
134 #define OSCAR_SUBTYPE_ADVERT_DEFAULT 0xffff | |
135 | |
136 /* | |
137 * SNAC Family: Invitation Services. | |
138 */ | |
139 #define OSCAR_SUBTYPE_INVITE_ERROR 0x0001 | |
140 #define OSCAR_SUBTYPE_INVITE_DEFAULT 0xffff | |
141 | |
142 /* | |
143 * SNAC Family: Administrative Services. | |
144 */ | |
145 #define OSCAR_SUBTYPE_ADMIN_ERROR 0x0001 | |
146 #define OSCAR_SUBTYPE_ADMIN_INFOCHANGE_REPLY 0x0005 | |
147 #define OSCAR_SUBTYPE_ADMIN_DEFAULT 0xffff | |
148 | |
149 /* | |
150 * SNAC Family: Popup Messages | |
151 */ | |
152 #define OSCAR_SUBTYPE_POPUP_ERROR 0x0001 | |
153 #define OSCAR_SUBTYPE_POPUP_DEFAULT 0xffff | |
154 | |
155 /* | |
156 * SNAC Family: Misc BOS Services. | |
157 */ | |
158 #define OSCAR_SUBTYPE_BOS_ERROR 0x0001 | |
159 #define OSCAR_SUBTYPE_BOS_RIGHTSQUERY 0x0002 | |
160 #define OSCAR_SUBTYPE_BOS_RIGHTS 0x0003 | |
161 #define OSCAR_SUBTYPE_BOS_DEFAULT 0xffff | |
162 | |
163 /* | |
164 * SNAC Family: User Lookup Services | |
165 */ | |
166 #define OSCAR_SUBTYPE_USERLOOKUP_ERROR 0x0001 | |
167 #define OSCAR_SUBTYPE_USERLOOKUP_DEFAULT 0xffff | |
168 | |
169 /* | |
170 * SNAC Family: User Status Services | |
171 */ | |
172 #define OSCAR_SUBTYPE_STATS_ERROR 0x0001 | |
173 #define OSCAR_SUBTYPE_STATS_SETREPORTINTERVAL 0x0002 | |
174 #define OSCAR_SUBTYPE_STATS_REPORTACK 0x0004 | |
175 #define OSCAR_SUBTYPE_STATS_DEFAULT 0xffff | |
176 | |
177 /* | |
178 * SNAC Family: Translation Services | |
179 */ | |
180 #define OSCAR_SUBTYPE_TRANSLATE_ERROR 0x0001 | |
181 #define OSCAR_SUBTYPE_TRANSLATE_DEFAULT 0xffff | |
182 | |
183 /* | |
184 * SNAC Family: Chat Navigation Services | |
185 */ | |
186 #define OSCAR_SUBTYPE_CHATNAV_ERROR 0x0001 | |
187 #define OSCAR_SUBTYPE_CHATNAV_CREATE 0x0008 | |
188 #define OSCAR_SUBTYPE_CHATNAV_INFO 0x0009 | |
189 #define OSCAR_SUBTYPE_CHATNAV_DEFAULT 0xffff | |
190 | |
191 /* | |
192 * SNAC Family: Chat Services | |
193 */ | |
194 #define OSCAR_SUBTYPE_CHAT_ERROR 0x0001 | |
195 #define OSCAR_SUBTYPE_CHAT_ROOMINFOUPDATE 0x0002 | |
196 #define OSCAR_SUBTYPE_CHAT_USERJOIN 0x0003 | |
197 #define OSCAR_SUBTYPE_CHAT_USERLEAVE 0x0004 | |
198 #define OSCAR_SUBTYPE_CHAT_OUTGOINGMSG 0x0005 | |
199 #define OSCAR_SUBTYPE_CHAT_INCOMINGMSG 0x0006 | |
200 #define OSCAR_SUBTYPE_CHAT_DEFAULT 0xffff | |
201 | |
202 /* | |
203 * SNAC Family: "New" Search | |
204 */ | |
205 #define OSCAR_SUBTYPE_ODIR_ERROR 0x0001 | |
206 #define OSCAR_SUBTYPE_ODIR_SEARCH 0x0002 | |
207 #define OSCAR_SUBTYPE_ODIR_RESULTS 0x0003 | |
208 | |
209 /* | |
210 * SNAC Family: Buddy icons | |
211 */ | |
212 #define OSCAR_SUBTYPE_BART_ERROR 0x0001 | |
213 #define OSCAR_SUBTYPE_BART_REQUEST 0x0004 | |
214 #define OSCAR_SUBTYPE_BART_RESPONSE 0x0005 | |
215 | |
216 /* | |
217 * SNAC Family: Server-Stored Buddy Lists | |
218 */ | |
219 #define OSCAR_SUBTYPE_FEEDBAG_ERROR 0x0001 | |
220 #define OSCAR_SUBTYPE_FEEDBAG_REQRIGHTS 0x0002 | |
221 #define OSCAR_SUBTYPE_FEEDBAG_RIGHTSINFO 0x0003 | |
222 #define OSCAR_SUBTYPE_FEEDBAG_REQDATA 0x0004 | |
223 #define OSCAR_SUBTYPE_FEEDBAG_REQIFCHANGED 0x0005 | |
224 #define OSCAR_SUBTYPE_FEEDBAG_LIST 0x0006 | |
225 #define OSCAR_SUBTYPE_FEEDBAG_ACTIVATE 0x0007 | |
226 #define OSCAR_SUBTYPE_FEEDBAG_ADD 0x0008 | |
227 #define OSCAR_SUBTYPE_FEEDBAG_MOD 0x0009 | |
228 #define OSCAR_SUBTYPE_FEEDBAG_DEL 0x000A | |
229 #define OSCAR_SUBTYPE_FEEDBAG_SRVACK 0x000E | |
230 #define OSCAR_SUBTYPE_FEEDBAG_NOLIST 0x000F | |
231 #define OSCAR_SUBTYPE_FEEDBAG_EDITSTART 0x0011 | |
232 #define OSCAR_SUBTYPE_FEEDBAG_EDITSTOP 0x0012 | |
233 #define OSCAR_SUBTYPE_FEEDBAG_SENDAUTH 0x0014 | |
234 #define OSCAR_SUBTYPE_FEEDBAG_RECVAUTH 0x0015 | |
235 #define OSCAR_SUBTYPE_FEEDBAG_SENDAUTHREQ 0x0018 | |
236 #define OSCAR_SUBTYPE_FEEDBAG_RECVAUTHREQ 0x0019 | |
237 #define OSCAR_SUBTYPE_FEEDBAG_SENDAUTHREP 0x001a | |
238 #define OSCAR_SUBTYPE_FEEDBAG_RECVAUTHREP 0x001b | |
239 #define OSCAR_SUBTYPE_FEEDBAG_ADDED 0x001c | |
240 | |
241 /* | |
242 * SNAC Family: ICQ | |
243 * | |
244 * Most of these are actually special. | |
245 */ | |
246 #define OSCAR_SUBTYPE_ICQ_ERROR 0x0001 | |
247 #define OSCAR_SUBTYPE_ICQ_OFFLINEMSG 0x00f0 | |
248 #define OSCAR_SUBTYPE_ICQ_OFFLINEMSGCOMPLETE 0x00f1 | |
249 #define OSCAR_SUBTYPE_ICQ_INFO 0x00f2 | |
250 #define OSCAR_SUBTYPE_ICQ_ALIAS 0x00f3 | |
251 #define OSCAR_SUBTYPE_ICQ_DEFAULT 0xffff | |
252 | |
253 /* | |
254 * SNAC Family: Authorizer | |
255 * | |
256 * Used only in protocol versions three and above. | |
257 * | |
258 */ | |
259 #define OSCAR_SUBTYPE_AUTH_ERROR 0x0001 | |
260 #define OSCAR_SUBTYPE_AUTH_LOGINREQEST 0x0002 | |
261 #define OSCAR_SUBTYPE_AUTH_LOGINRESPONSE 0x0003 | |
262 #define OSCAR_SUBTYPE_AUTH_AUTHREQ 0x0006 | |
263 #define OSCAR_SUBTYPE_AUTH_AUTHRESPONSE 0x0007 | |
264 #define OSCAR_SUBTYPE_AUTH_SECURID_REQUEST 0x000a | |
265 #define OSCAR_SUBTYPE_AUTH_SECURID_RESPONSE 0x000b | |
266 | |
267 /* | |
268 * SNAC Family: Email | |
269 * | |
270 * Used for getting information on the email address | |
271 * associated with your screen name. | |
272 * | |
273 */ | |
274 #define OSCAR_SUBTYPE_ALERT_ERROR 0x0001 | |
275 #define OSCAR_SUBTYPE_ALERT_SENDCOOKIES 0x0006 | |
276 #define OSCAR_SUBTYPE_ALERT_MAILSTATUS 0x0007 | |
277 #define OSCAR_SUBTYPE_ALERT_INIT 0x0016 | |
278 | |
279 /* | |
280 * SNAC Family: Internal Messages | |
281 * | |
282 * This isn't truly a SNAC family either, but using | |
283 * these, we can integrated non-SNAC services into | |
284 * the SNAC-centered libfaim callback structure. | |
285 * | |
286 */ | |
287 #define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001 | |
288 #define AIM_CB_SPECIAL_AUTHOTHER 0x0002 | |
289 #define AIM_CB_SPECIAL_CONNERR 0x0003 | |
290 #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 | |
291 #define AIM_CB_SPECIAL_FLAPVER 0x0005 | |
292 #define AIM_CB_SPECIAL_CONNINITDONE 0x0006 | |
293 #define AIM_CB_SPECIAL_IMAGETRANSFER 0x0007 | |
294 #define AIM_CB_SPECIAL_MSGTIMEOUT 0x0008 | |
295 #define AIM_CB_SPECIAL_CONNDEAD 0x0009 | |
296 #define AIM_CB_SPECIAL_UNKNOWN 0xffff | |
297 #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN | |
298 | |
299 /* SNAC flags */ | |
300 #define AIM_SNACFLAGS_DESTRUCTOR 0x0001 | |
301 | |
302 #endif /* _SNACTYPES_H_ */ |