Mercurial > pidgin.yaz
comparison libfaim/aim.h @ 2034:6bdf9954097c
[gaim-migrate @ 2044]
oscar is much less segfaulty. and more reliable. yes.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 16 Jun 2001 05:28:08 +0000 |
parents | 4bf0163563ca |
children |
comparison
equal
deleted
inserted
replaced
2033:705783e5ab8c | 2034:6bdf9954097c |
---|---|
258 time_t lastactivity; /* time of last transmit */ | 258 time_t lastactivity; /* time of last transmit */ |
259 int forcedlatency; | 259 int forcedlatency; |
260 struct aim_rxcblist_t *handlerlist; | 260 struct aim_rxcblist_t *handlerlist; |
261 faim_mutex_t active; /* lock around read/writes */ | 261 faim_mutex_t active; /* lock around read/writes */ |
262 faim_mutex_t seqnum_lock; /* lock around ->seqnum changes */ | 262 faim_mutex_t seqnum_lock; /* lock around ->seqnum changes */ |
263 void *sessv; | |
263 struct aim_conn_t *next; | 264 struct aim_conn_t *next; |
264 }; | 265 }; |
265 | 266 |
266 /* struct for incoming commands */ | 267 /* struct for incoming commands */ |
267 struct command_rx_struct { | 268 struct command_rx_struct { |
512 faim_export int aim_conn_setlatency(struct aim_conn_t *conn, int newval); | 513 faim_export int aim_conn_setlatency(struct aim_conn_t *conn, int newval); |
513 | 514 |
514 faim_export int aim_conn_addhandler(struct aim_session_t *, struct aim_conn_t *conn, u_short family, u_short type, aim_rxcallback_t newhandler, u_short flags); | 515 faim_export int aim_conn_addhandler(struct aim_session_t *, struct aim_conn_t *conn, u_short family, u_short type, aim_rxcallback_t newhandler, u_short flags); |
515 faim_export int aim_clearhandlers(struct aim_conn_t *conn); | 516 faim_export int aim_clearhandlers(struct aim_conn_t *conn); |
516 | 517 |
518 faim_export struct aim_session_t *aim_conn_getsess(struct aim_conn_t *conn); | |
517 faim_export void aim_conn_close(struct aim_conn_t *deadconn); | 519 faim_export void aim_conn_close(struct aim_conn_t *deadconn); |
518 faim_export struct aim_conn_t *aim_newconn(struct aim_session_t *, int type, char *dest); | 520 faim_export struct aim_conn_t *aim_newconn(struct aim_session_t *, int type, char *dest); |
519 faim_export int aim_conngetmaxfd(struct aim_session_t *); | 521 faim_export int aim_conngetmaxfd(struct aim_session_t *); |
520 faim_export struct aim_conn_t *aim_select(struct aim_session_t *, struct timeval *, int *); | 522 faim_export struct aim_conn_t *aim_select(struct aim_session_t *, struct timeval *, int *); |
521 faim_export int aim_conn_isready(struct aim_conn_t *); | 523 faim_export int aim_conn_isready(struct aim_conn_t *); |
527 faim_export int aim_setdebuggingcb(struct aim_session_t *sess, faim_debugging_callback_t); | 529 faim_export int aim_setdebuggingcb(struct aim_session_t *sess, faim_debugging_callback_t); |
528 faim_export void aim_session_init(struct aim_session_t *, unsigned long flags, int debuglevel); | 530 faim_export void aim_session_init(struct aim_session_t *, unsigned long flags, int debuglevel); |
529 faim_export void aim_session_kill(struct aim_session_t *); | 531 faim_export void aim_session_kill(struct aim_session_t *); |
530 faim_export void aim_setupproxy(struct aim_session_t *sess, char *server, char *username, char *password); | 532 faim_export void aim_setupproxy(struct aim_session_t *sess, char *server, char *username, char *password); |
531 faim_export struct aim_conn_t *aim_getconn_type(struct aim_session_t *, int type); | 533 faim_export struct aim_conn_t *aim_getconn_type(struct aim_session_t *, int type); |
534 faim_export struct aim_conn_t *aim_getconn_type_all(struct aim_session_t *, int type); | |
535 faim_export struct aim_conn_t *aim_getconn_fd(struct aim_session_t *, int fd); | |
532 | 536 |
533 /* aim_misc.c */ | 537 /* aim_misc.c */ |
534 | 538 |
535 #define AIM_VISIBILITYCHANGE_PERMITADD 0x05 | 539 #define AIM_VISIBILITYCHANGE_PERMITADD 0x05 |
536 #define AIM_VISIBILITYCHANGE_PERMITREMOVE 0x06 | 540 #define AIM_VISIBILITYCHANGE_PERMITREMOVE 0x06 |