Mercurial > pidgin
comparison src/protocols/oscar/aim_internal.h @ 7011:4375bf2d9020
[gaim-migrate @ 7574]
The user-visible changes? Gaim now shows peep's away messages in their
tooltip for AIM over oscar.
Things to do:
-Make sure this doesn't screw up with huge buddy lists
-Replace %n with your screen name, etc. in the tooltip
-Leave in b, i, u tags in the tooltip
-Fix the 2 8 byte memleaks in locate.c
Client authors that aren't me will want to read the following pretty
closely...
I made some internal libfaim changes. I desire to make libfaim cleaner.
I don't know if this really helps or not. Here's what I've done:
Changed all the SNAC-sending functions in info.c to NOT take a conn
argument. The connection is looked up from the session. I'm trying
to make oscar.c less-aware of connections.
Added aim_locate_finduserinfo() - Use for getting the aim_userinfo_t for the
given screenname.
Added aim_locate_getinfoshort() - Use this to request that the servers send
you profile info, away message, caps, or a combination of the above. It's
like aim_locate_getinfo() but less rate limited.
Renamed aim_bos_reqlocaterights() to aim_locate_reqrights()
Renamed aim_getinfo() to aim_locate_getinfo()
Renamed aim_setdirectoryinfo() to aim_locate_setdirinfo()
Renamed aim_0002_000b() to aim_locate_000b()
Renamed aim_setuserinterests() to aim_locate_setinterests()
Removed aim_userinfo_sn()
Removed aim_userinfo_flags()
Removed aim_userinfo_idle()
Removed aim_userinfo_warnlevel()
Removed aim_userinfo_createtime()
Removed aim_userinfo_membersince()
Removed aim_userinfo_onlinesince()
Removed aim_userinfo_sessionlen()
Removed aim_userinfo_hascap()
Renamed info.c to locate.c
Made locate.c keep a static, linked list of nodes of sn, away message,
available message, user info. This list is maintained by libfaim
automatically. Now clients don't have to keep track of all this stuff
themselves, and users won't have to wait for away message/info retrieval
if the person is in your buddy list. libfaim uses the iChat way of
retrieving stuff, which is not nearly as rate limited as the old way.
I actually have a feeling WinAIM uses the same SNAC now (although I
didn't check), but I like pluggin iChat because it's innovative.
Moved sess->emailinfo to a static variable inside email.c.
Removed evilhack from oscar.c
I think that's about everything...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 29 Sep 2003 12:30:03 +0000 |
parents | 594682101ba6 |
children | 83e8faa7f6d5 |
comparison
equal
deleted
inserted
replaced
7010:eb3ed649252e | 7011:4375bf2d9020 |
---|---|
186 struct rateclass *rates; | 186 struct rateclass *rates; |
187 } aim_conn_inside_t; | 187 } aim_conn_inside_t; |
188 | 188 |
189 faim_internal void aim_conn_addgroup(aim_conn_t *conn, fu16_t group); | 189 faim_internal void aim_conn_addgroup(aim_conn_t *conn, fu16_t group); |
190 | 190 |
191 faim_internal fu32_t aim_getcap(aim_session_t *sess, aim_bstream_t *bs, int len); | |
192 faim_internal int aim_putcap(aim_bstream_t *bs, fu32_t caps); | |
193 | |
194 faim_internal int aim_cachecookie(aim_session_t *sess, aim_msgcookie_t *cookie); | 191 faim_internal int aim_cachecookie(aim_session_t *sess, aim_msgcookie_t *cookie); |
195 faim_internal aim_msgcookie_t *aim_uncachecookie(aim_session_t *sess, fu8_t *cookie, int type); | 192 faim_internal aim_msgcookie_t *aim_uncachecookie(aim_session_t *sess, fu8_t *cookie, int type); |
196 faim_internal aim_msgcookie_t *aim_mkcookie(fu8_t *, int, void *); | 193 faim_internal aim_msgcookie_t *aim_mkcookie(fu8_t *, int, void *); |
197 faim_internal aim_msgcookie_t *aim_checkcookie(aim_session_t *, const unsigned char *, const int); | 194 faim_internal aim_msgcookie_t *aim_checkcookie(aim_session_t *, const unsigned char *, const int); |
198 faim_internal int aim_freecookie(aim_session_t *sess, aim_msgcookie_t *cookie); | 195 faim_internal int aim_freecookie(aim_session_t *sess, aim_msgcookie_t *cookie); |
199 faim_internal int aim_msgcookie_gettype(int reqclass); | 196 faim_internal int aim_msgcookie_gettype(int reqclass); |
200 faim_internal int aim_cookie_free(aim_session_t *sess, aim_msgcookie_t *cookie); | 197 faim_internal int aim_cookie_free(aim_session_t *sess, aim_msgcookie_t *cookie); |
201 | 198 |
199 /* 0x0002 - locate.c */ | |
200 faim_internal void aim_locate_requestuserinfo(aim_session_t *sess, const char *sn); | |
201 faim_internal fu32_t aim_getcap(aim_session_t *sess, aim_bstream_t *bs, int len); | |
202 faim_internal int aim_putcap(aim_bstream_t *bs, fu32_t caps); | |
202 faim_internal void aim_info_free(aim_userinfo_t *); | 203 faim_internal void aim_info_free(aim_userinfo_t *); |
203 faim_internal int aim_info_extract(aim_session_t *sess, aim_bstream_t *bs, aim_userinfo_t *); | 204 faim_internal int aim_info_extract(aim_session_t *sess, aim_bstream_t *bs, aim_userinfo_t *); |
204 faim_internal int aim_putuserinfo(aim_bstream_t *bs, aim_userinfo_t *info); | 205 faim_internal int aim_putuserinfo(aim_bstream_t *bs, aim_userinfo_t *info); |
205 | 206 |
206 faim_internal int aim_chat_readroominfo(aim_bstream_t *bs, struct aim_chat_roominfo *outinfo); | 207 faim_internal int aim_chat_readroominfo(aim_bstream_t *bs, struct aim_chat_roominfo *outinfo); |
207 | |
208 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...); | |
209 | 208 |
210 faim_internal void aim_conn_kill_chat(aim_session_t *sess, aim_conn_t *conn); | 209 faim_internal void aim_conn_kill_chat(aim_session_t *sess, aim_conn_t *conn); |
211 | 210 |
212 /* These are all handled internally now. */ | 211 /* These are all handled internally now. */ |
213 faim_internal int aim_setversions(aim_session_t *sess, aim_conn_t *conn); | 212 faim_internal int aim_setversions(aim_session_t *sess, aim_conn_t *conn); |
214 faim_internal int aim_reqrates(aim_session_t *, aim_conn_t *); | 213 faim_internal int aim_reqrates(aim_session_t *, aim_conn_t *); |
215 faim_internal int aim_rates_addparam(aim_session_t *, aim_conn_t *); | 214 faim_internal int aim_rates_addparam(aim_session_t *, aim_conn_t *); |
216 faim_internal int aim_rates_delparam(aim_session_t *, aim_conn_t *); | 215 faim_internal int aim_rates_delparam(aim_session_t *, aim_conn_t *); |
217 | 216 |
217 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...); | |
218 | |
218 #ifndef FAIM_INTERNAL_INSANE | 219 #ifndef FAIM_INTERNAL_INSANE |
219 #define printf() printf called inside libfaim | 220 #define printf() printf called inside libfaim |
220 #define sprintf() unbounded sprintf used inside libfaim | 221 #define sprintf() unbounded sprintf used inside libfaim |
221 #endif | 222 #endif |
222 | 223 |