comparison src/protocols/oscar/aim.h @ 4650:4938d12f6d48

[gaim-migrate @ 4961] This is mostly just me cleaning up some of my mess. The one important change is... I set what is believed to be the UTF8 capability flag for ICQ. I'm hoping this will tell ICQ2002 and more recent that we are able to accept UTF8 messages. Please test this and let us know what happens. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 05 Mar 2003 05:10:47 +0000
parents 440d3d870b84
children 6d8a3e81db48
comparison
equal deleted inserted replaced
4649:f04e2a5b637a 4650:4938d12f6d48
994 char ip[30]; 994 char ip[30];
995 int state; 995 int state;
996 struct aim_fileheader_t fh; 996 struct aim_fileheader_t fh;
997 }; 997 };
998 998
999 faim_export fu32_t aim_oft_checksum(const unsigned char *buffer, int bufferlen, fu32_t prevcheck); 999 faim_export fu32_t aim_oft_checksum_chunk(const unsigned char *buffer, int bufferlen, fu32_t prevcheck);
1000 faim_export fu32_t aim_oft_checksum_file(char *filename);
1000 faim_export int aim_handlerendconnect(aim_session_t *sess, aim_conn_t *cur); 1001 faim_export int aim_handlerendconnect(aim_session_t *sess, aim_conn_t *cur);
1001 faim_export int aim_odc_send_typing(aim_session_t *sess, aim_conn_t *conn, int typing); 1002 faim_export int aim_odc_send_typing(aim_session_t *sess, aim_conn_t *conn, int typing);
1002 faim_export int aim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *msg, int len, int encoding); 1003 faim_export int aim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *msg, int len, int encoding);
1003 faim_export const char *aim_odc_getsn(aim_conn_t *conn); 1004 faim_export const char *aim_odc_getsn(aim_conn_t *conn);
1004 faim_export aim_conn_t *aim_odc_getconn(aim_session_t *sess, const char *sn); 1005 faim_export aim_conn_t *aim_odc_getconn(aim_session_t *sess, const char *sn);
1008 faim_export int aim_oft_sendheader(aim_session_t *sess, aim_conn_t *conn, fu16_t type, const fu8_t *cookie, const char *filename, fu16_t filesdone, fu16_t numfiles, fu32_t size, fu32_t totsize, fu32_t modtime, fu32_t checksum, fu8_t flags, fu32_t bytesreceived, fu32_t recvcsum); 1009 faim_export int aim_oft_sendheader(aim_session_t *sess, aim_conn_t *conn, fu16_t type, const fu8_t *cookie, const char *filename, fu16_t filesdone, fu16_t numfiles, fu32_t size, fu32_t totsize, fu32_t modtime, fu32_t checksum, fu8_t flags, fu32_t bytesreceived, fu32_t recvcsum);
1009 1010
1010 1011
1011 1012
1012 /* info.c */ 1013 /* info.c */
1013 #define AIM_CAPS_BUDDYICON 0x00000001 1014 #define AIM_CAPS_BUDDYICON 0x00000001
1014 #define AIM_CAPS_VOICE 0x00000002 1015 #define AIM_CAPS_VOICE 0x00000002
1015 #define AIM_CAPS_IMIMAGE 0x00000004 1016 #define AIM_CAPS_IMIMAGE 0x00000004
1016 #define AIM_CAPS_CHAT 0x00000008 1017 #define AIM_CAPS_CHAT 0x00000008
1017 #define AIM_CAPS_GETFILE 0x00000010 1018 #define AIM_CAPS_GETFILE 0x00000010
1018 #define AIM_CAPS_SENDFILE 0x00000020 1019 #define AIM_CAPS_SENDFILE 0x00000020
1019 #define AIM_CAPS_GAMES 0x00000040 1020 #define AIM_CAPS_GAMES 0x00000040
1020 #define AIM_CAPS_SAVESTOCKS 0x00000080 1021 #define AIM_CAPS_SAVESTOCKS 0x00000080
1021 #define AIM_CAPS_SENDBUDDYLIST 0x00000100 1022 #define AIM_CAPS_SENDBUDDYLIST 0x00000100
1022 #define AIM_CAPS_GAMES2 0x00000200 1023 #define AIM_CAPS_GAMES2 0x00000200
1023 #define AIM_CAPS_ICQ 0x00000400 1024 #define AIM_CAPS_ICQ 0x00000400
1024 #define AIM_CAPS_APINFO 0x00000800 1025 #define AIM_CAPS_APINFO 0x00000800
1025 #define AIM_CAPS_ICQRTF 0x00001000 1026 #define AIM_CAPS_ICQRTF 0x00001000
1026 #define AIM_CAPS_EMPTY 0x00002000 1027 #define AIM_CAPS_EMPTY 0x00002000
1027 #define AIM_CAPS_ICQSERVERRELAY 0x00004000 1028 #define AIM_CAPS_ICQSERVERRELAY 0x00004000
1028 #define AIM_CAPS_ICQUNKNOWN 0x00008000 1029 #define AIM_CAPS_ICQUNKNOWN 0x00008000
1029 #define AIM_CAPS_TRILLIANCRYPT 0x00010000 1030 #define AIM_CAPS_TRILLIANCRYPT 0x00010000
1030 #define AIM_CAPS_LAST 0x00020000 1031 #define AIM_CAPS_ICQUTF8 0x00020000
1032 #define AIM_CAPS_LAST 0x00040000
1031 1033
1032 faim_export int aim_0002_000b(aim_session_t *sess, aim_conn_t *conn, const char *sn); 1034 faim_export int aim_0002_000b(aim_session_t *sess, aim_conn_t *conn, const char *sn);
1033 1035
1034 #define AIM_SENDMEMBLOCK_FLAG_ISREQUEST 0 1036 #define AIM_SENDMEMBLOCK_FLAG_ISREQUEST 0
1035 #define AIM_SENDMEMBLOCK_FLAG_ISHASH 1 1037 #define AIM_SENDMEMBLOCK_FLAG_ISHASH 1