| 338 |
350 |
| 339 int debug; |
351 int debug; |
| 340 void (*debugcb)(struct aim_session_t *sess, int level, const char *format, va_list va); /* same as faim_debugging_callback_t */ |
352 void (*debugcb)(struct aim_session_t *sess, int level, const char *format, va_list va); /* same as faim_debugging_callback_t */ |
| 341 |
353 |
| 342 struct aim_msgcookie_t *msgcookies; |
354 struct aim_msgcookie_t *msgcookies; |
| |
355 |
| |
356 void *modlistv; |
| 343 }; |
357 }; |
| 344 |
358 |
| 345 /* Values for sess->flags */ |
359 /* Values for sess->flags */ |
| 346 #define AIM_SESS_FLAGS_SNACLOGIN 0x00000001 |
360 #define AIM_SESS_FLAGS_SNACLOGIN 0x00000001 |
| 347 #define AIM_SESS_FLAGS_XORLOGIN 0x00000002 |
361 #define AIM_SESS_FLAGS_XORLOGIN 0x00000002 |
| 442 |
456 |
| 443 /* aim_login.c */ |
457 /* aim_login.c */ |
| 444 faim_export int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
458 faim_export int aim_sendconnack(struct aim_session_t *sess, struct aim_conn_t *conn); |
| 445 faim_export int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
459 faim_export int aim_request_login (struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
| 446 faim_export int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *, char *key); |
460 faim_export int aim_send_login (struct aim_session_t *, struct aim_conn_t *, char *, char *, struct client_info_s *, char *key); |
| |
461 faim_export int aim_encode_password_md5(const char *password, const char *key, unsigned char *digest); |
| 447 faim_export unsigned long aim_sendauthresp(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn, int errorcode, char *errorurl, char *bosip, char *cookie, char *email, int regstatus); |
462 faim_export unsigned long aim_sendauthresp(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn, int errorcode, char *errorurl, char *bosip, char *cookie, char *email, int regstatus); |
| 448 faim_export int aim_gencookie(unsigned char *buf); |
463 faim_export int aim_gencookie(unsigned char *buf); |
| 449 faim_export int aim_sendserverready(struct aim_session_t *sess, struct aim_conn_t *conn); |
464 faim_export int aim_sendserverready(struct aim_session_t *sess, struct aim_conn_t *conn); |
| 450 faim_export unsigned long aim_sendredirect(struct aim_session_t *sess, struct aim_conn_t *conn, unsigned short servid, char *ip, char *cookie); |
465 faim_export unsigned long aim_sendredirect(struct aim_session_t *sess, struct aim_conn_t *conn, unsigned short servid, char *ip, char *cookie); |
| 451 faim_export void aim_purge_rxqueue(struct aim_session_t *); |
466 faim_export void aim_purge_rxqueue(struct aim_session_t *); |
| 481 faim_export int aim_conn_isconnecting(struct aim_conn_t *conn); |
496 faim_export int aim_conn_isconnecting(struct aim_conn_t *conn); |
| 482 |
497 |
| 483 typedef void (*faim_debugging_callback_t)(struct aim_session_t *sess, int level, const char *format, va_list va); |
498 typedef void (*faim_debugging_callback_t)(struct aim_session_t *sess, int level, const char *format, va_list va); |
| 484 faim_export int aim_setdebuggingcb(struct aim_session_t *sess, faim_debugging_callback_t); |
499 faim_export int aim_setdebuggingcb(struct aim_session_t *sess, faim_debugging_callback_t); |
| 485 faim_export void aim_session_init(struct aim_session_t *, unsigned long flags, int debuglevel); |
500 faim_export void aim_session_init(struct aim_session_t *, unsigned long flags, int debuglevel); |
| |
501 faim_export void aim_session_kill(struct aim_session_t *); |
| 486 faim_export void aim_setupproxy(struct aim_session_t *sess, char *server, char *username, char *password); |
502 faim_export void aim_setupproxy(struct aim_session_t *sess, char *server, char *username, char *password); |
| 487 faim_export struct aim_conn_t *aim_getconn_type(struct aim_session_t *, int type); |
503 faim_export struct aim_conn_t *aim_getconn_type(struct aim_session_t *, int type); |
| 488 |
504 |
| 489 /* aim_misc.c */ |
505 /* aim_misc.c */ |
| 490 |
506 |
| 618 #define AIM_CAPS_GETFILE 0x10 |
634 #define AIM_CAPS_GETFILE 0x10 |
| 619 #define AIM_CAPS_SENDFILE 0x20 |
635 #define AIM_CAPS_SENDFILE 0x20 |
| 620 #define AIM_CAPS_GAMES 0x40 |
636 #define AIM_CAPS_GAMES 0x40 |
| 621 #define AIM_CAPS_SAVESTOCKS 0x80 |
637 #define AIM_CAPS_SAVESTOCKS 0x80 |
| 622 |
638 |
| |
639 faim_export int aim_0002_000b(struct aim_session_t *sess, struct aim_conn_t *conn, const char *sn); |
| |
640 faim_export int aim_0001_0020(struct aim_session_t *sess, struct aim_conn_t *conn); |
| |
641 |
| 623 #define AIM_GETINFO_GENERALINFO 0x00001 |
642 #define AIM_GETINFO_GENERALINFO 0x00001 |
| 624 #define AIM_GETINFO_AWAYMESSAGE 0x00003 |
643 #define AIM_GETINFO_AWAYMESSAGE 0x00003 |
| 625 |
644 |
| 626 struct aim_msgcookie_t { |
645 struct aim_msgcookie_t { |
| 627 unsigned char cookie[8]; |
646 unsigned char cookie[8]; |
| 661 #define AIM_TRANSFER_DENY_DECLINE 0x0001 |
680 #define AIM_TRANSFER_DENY_DECLINE 0x0001 |
| 662 #define AIM_TRANSFER_DENY_NOTACCEPTING 0x0002 |
681 #define AIM_TRANSFER_DENY_NOTACCEPTING 0x0002 |
| 663 faim_export unsigned long aim_denytransfer(struct aim_session_t *sess, struct aim_conn_t *conn, char *sender, char *cookie, unsigned short code); |
682 faim_export unsigned long aim_denytransfer(struct aim_session_t *sess, struct aim_conn_t *conn, char *sender, char *cookie, unsigned short code); |
| 664 faim_export struct aim_conn_t *aim_accepttransfer(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn, char *cookie, char *ip, unsigned short listingfiles, unsigned short listingtotsize, unsigned short listingsize, unsigned int listingchecksum, unsigned short rendid); |
683 faim_export struct aim_conn_t *aim_accepttransfer(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn, char *cookie, char *ip, unsigned short listingfiles, unsigned short listingtotsize, unsigned short listingsize, unsigned int listingchecksum, unsigned short rendid); |
| 665 |
684 |
| 666 faim_export unsigned long aim_getinfo(struct aim_session_t *, struct aim_conn_t *, const char *, unsigned short); |
685 faim_export int aim_getinfo(struct aim_session_t *, struct aim_conn_t *, const char *, unsigned short); |
| 667 faim_export int aim_sendbuddyoncoming(struct aim_session_t *sess, struct aim_conn_t *conn, struct aim_userinfo_s *info); |
686 faim_export int aim_sendbuddyoncoming(struct aim_session_t *sess, struct aim_conn_t *conn, struct aim_userinfo_s *info); |
| 668 faim_export int aim_sendbuddyoffgoing(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
687 faim_export int aim_sendbuddyoffgoing(struct aim_session_t *sess, struct aim_conn_t *conn, char *sn); |
| 669 |
688 |
| 670 |
689 |
| 671 /* aim_auth.c */ |
690 /* aim_auth.c */ |
| 754 faim_export char *aim_strsep(char **pp, const char *delim); |
773 faim_export char *aim_strsep(char **pp, const char *delim); |
| 755 |
774 |
| 756 /* aim_meta.c */ |
775 /* aim_meta.c */ |
| 757 faim_export char *aim_getbuilddate(void); |
776 faim_export char *aim_getbuilddate(void); |
| 758 faim_export char *aim_getbuildtime(void); |
777 faim_export char *aim_getbuildtime(void); |
| 759 faim_export char *aim_getbuildstring(void); |
778 faim_export int aim_getbuildstring(char *buf, int buflen); |
| 760 |
779 |
| 761 #include <aim_internal.h> |
780 #include <aim_internal.h> |
| 762 |
781 |
| 763 #endif /* __AIM_H__ */ |
782 #endif /* __AIM_H__ */ |
| 764 |
783 |