comparison src/protocols/oscar/aim_internal.h @ 4617:858979ab3867

[gaim-migrate @ 4908] Big Changes: -Rewrote some of the perl stuff so perl scripts can change a few of their parameters -Receiving a file with AIM over oscar works pretty well Now, the "nitty gritty": Very minor change to prefs.c: In the plugins details tab, I changed "URL" to "Web Site." I was just going to fix the tabbing, but silvestrij suggested changing it to "Web site," and I thought that sounded good. I think it fits better, too. I dunno, maybe that's just me. "Get Capabilities" has stopped working for some reason. I'm just going to blame AOL. It's really not important anyway, and some people wanted it taken off. It is now #ifdef 0'ed out. I'll remove it completely if it continues to no longer function. I took out a few plugin_event calls from oscar.c and put them in core code. "event_error" should be, uh, "evented" when there is an error signing on. Hopefully no one was using this. It's really pretty useless. The parameter is now the reason for not being able to connect rather than the archaic toc error code. I screwed around with how perl functions are called some. There was way the hell too much malloc'ing going on here. I think all in all it's an improvement, though I'm still not a big fan of how changes to parameters propagate to the actual memory. I really think it would be nice if the perl stuff was made into a C plugin. It's just so much cleaner. Especially if someone wanted to write, say, a python or tcl interpreter. That's how xchat2 does it. I just think that would be really slick. Like butter. Or ice. Very unlike Velcro. I added a "Change Password" Protocol Action for ICQ over oscar. This was really pretty easy. I'd like to thank my housemate Andrew for complaining a lot that having to use Windows ICQ to change his password was a pain. I rewrote a lot of the oscar file transfer stuff to use Christian's new xfer interface. This involved moving a few functions from ft.c to im.c, where they belong. I also removed all the #if 0'ed getfile functions. I'll be rewritting them soonish. Receiving a file should work perfectly, aside from maybe a small memleak when stuff is canceled. Sending a file is currently disabled. No ETA on when I'll have that working. I renamed pretty much all of the functions in im.c so they have kind of a scheme now. They should all be aim_im_bleh, since "im" is the family name. There comes a time when you must break the crap out of any clients that might be using libfaim in order to make stuff cleaner. Maybe. I got rid of the snac destructor stuff for now. I'll probably add it back later. I wasn't entirely comfortable with how it was done. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 26 Feb 2003 05:01:37 +0000
parents cc2f780c0505
children 9810ce8e7a96
comparison
equal deleted inserted replaced
4616:767093a2ddaf 4617:858979ab3867
22 fu16_t toolid; 22 fu16_t toolid;
23 fu16_t toolversion; 23 fu16_t toolversion;
24 fu16_t flags; 24 fu16_t flags;
25 char name[AIM_MODULENAME_MAXLEN+1]; 25 char name[AIM_MODULENAME_MAXLEN+1];
26 int (*snachandler)(aim_session_t *sess, struct aim_module_s *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs); 26 int (*snachandler)(aim_session_t *sess, struct aim_module_s *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs);
27 int (*snacdestructor)(aim_session_t *sess, aim_conn_t *conn, aim_modsnac_t *snac, void *data);
28 27
29 void (*shutdown)(aim_session_t *sess, struct aim_module_s *mod); 28 void (*shutdown)(aim_session_t *sess, struct aim_module_s *mod);
30 void *priv; 29 void *priv;
31 struct aim_module_s *next; 30 struct aim_module_s *next;
32 } aim_module_t; 31 } aim_module_t;
127 void *data; 126 void *data;
128 time_t issuetime; 127 time_t issuetime;
129 struct aim_snac_s *next; 128 struct aim_snac_s *next;
130 } aim_snac_t; 129 } aim_snac_t;
131 130
132 struct aim_snac_destructor {
133 aim_conn_t *conn;
134 void *data;
135 };
136
137 /* snac.c */ 131 /* snac.c */
138 faim_internal void aim_initsnachash(aim_session_t *sess); 132 faim_internal void aim_initsnachash(aim_session_t *sess);
139 faim_internal aim_snacid_t aim_newsnac(aim_session_t *, aim_snac_t *newsnac); 133 faim_internal aim_snacid_t aim_newsnac(aim_session_t *, aim_snac_t *newsnac);
140 faim_internal aim_snacid_t aim_cachesnac(aim_session_t *sess, const fu16_t family, const fu16_t type, const fu16_t flags, const void *data, const int datalen); 134 faim_internal aim_snacid_t aim_cachesnac(aim_session_t *sess, const fu16_t family, const fu16_t type, const fu16_t flags, const void *data, const int datalen);
141 faim_internal aim_snac_t *aim_remsnac(aim_session_t *, aim_snacid_t id); 135 faim_internal aim_snac_t *aim_remsnac(aim_session_t *, aim_snacid_t id);
209 203
210 faim_internal int aim_chat_readroominfo(aim_bstream_t *bs, struct aim_chat_roominfo *outinfo); 204 faim_internal int aim_chat_readroominfo(aim_bstream_t *bs, struct aim_chat_roominfo *outinfo);
211 205
212 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...); 206 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...);
213 207
214 faim_internal int aim_request_directim(aim_session_t *sess, const char *destsn, fu8_t *ip, fu16_t port, fu8_t *ckret);
215 faim_internal int aim_request_sendfile(aim_session_t *sess, const char *sn, const char *filename, fu16_t numfiles, fu32_t totsize, fu8_t *ip, fu16_t port, fu8_t *ckret);
216 faim_internal void aim_conn_close_rend(aim_session_t *sess, aim_conn_t *conn);
217 faim_internal void aim_conn_kill_rend(aim_session_t *sess, aim_conn_t *conn);
218
219 faim_internal void aim_conn_kill_chat(aim_session_t *sess, aim_conn_t *conn); 208 faim_internal void aim_conn_kill_chat(aim_session_t *sess, aim_conn_t *conn);
220 209
221 /* These are all handled internally now. */ 210 /* These are all handled internally now. */
222 faim_internal int aim_setversions(aim_session_t *sess, aim_conn_t *conn); 211 faim_internal int aim_setversions(aim_session_t *sess, aim_conn_t *conn);
223 faim_internal int aim_reqrates(aim_session_t *, aim_conn_t *); 212 faim_internal int aim_reqrates(aim_session_t *, aim_conn_t *);