comparison libfaim/aim.h @ 1746:bacb77b0eb06

[gaim-migrate @ 1756] this won't help. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 25 Apr 2001 01:53:56 +0000
parents 3fe5799b7823
children f15d449b3167
comparison
equal deleted inserted replaced
1745:c39cc2b44226 1746:bacb77b0eb06
167 int major2; 167 int major2;
168 int minor2; 168 int minor2;
169 long unknown; 169 long unknown;
170 }; 170 };
171 171
172 #define AIM_CLIENTINFO_KNOWNGOOD { \ 172 #define AIM_CLIENTINFO_KNOWNGOOD_3_5_1670 { \
173 "AOL Instant Messenger (SM), version 3.5.1670/WIN32", \ 173 "AOL Instant Messenger (SM), version 3.5.1670/WIN32", \
174 0x0003, \ 174 0x0003, \
175 0x0005, \ 175 0x0005, \
176 0x0686, \ 176 0x0686, \
177 "us", \ 177 "us", \
178 "en", \ 178 "en", \
179 0x0004, \ 179 0x0004, \
180 0x0000, \ 180 0x0000, \
181 0x0000002a, \ 181 0x0000002a, \
182 } 182 }
183
184 #define AIM_CLIENTINFO_KNOWNGOOD_4_1_2010 { \
185 "AOL Instant Messenger (SM), version 4.1.2010/WIN32", \
186 0x0004, \
187 0x0001, \
188 0x07da, \
189 "us", \
190 "en", \
191 0x0004, \
192 0x0000, \
193 0x0000004b, \
194 }
195
196 /*
197 * I would make 4.1.2010 the default, but they seem to have found
198 * an alternate way of breaking that one.
199 *
200 * 3.5.1670 should work fine, however, you will be subjected to the
201 * memory test, which may require you to have a WinAIM binary laying
202 * around. (see login.c::memrequest())
203 */
204 #define AIM_CLIENTINFO_KNOWNGOOD AIM_CLIENTINFO_KNOWNGOOD_3_5_1670
183 205
184 #ifndef TRUE 206 #ifndef TRUE
185 #define TRUE 1 207 #define TRUE 1
186 #define FALSE 0 208 #define FALSE 0
187 #endif 209 #endif
613 635
614 636
615 #define AIM_IMFLAGS_AWAY 0x01 /* mark as an autoreply */ 637 #define AIM_IMFLAGS_AWAY 0x01 /* mark as an autoreply */
616 #define AIM_IMFLAGS_ACK 0x02 /* request a receipt notice */ 638 #define AIM_IMFLAGS_ACK 0x02 /* request a receipt notice */
617 639
618 faim_export unsigned long aim_send_im(struct aim_session_t *, struct aim_conn_t *, char *, u_int, char *); 640 faim_export unsigned long aim_send_im(struct aim_session_t *, struct aim_conn_t *, const char *destsn, unsigned short flags, const char *msg, int msglen);
619 faim_export int aim_send_im_direct(struct aim_session_t *, struct aim_conn_t *, char *); 641 faim_export int aim_send_im_direct(struct aim_session_t *, struct aim_conn_t *, char *);
620 faim_export struct aim_conn_t * aim_directim_initiate(struct aim_session_t *, struct aim_conn_t *, struct aim_directim_priv *, char *destsn); 642 faim_export struct aim_conn_t * aim_directim_initiate(struct aim_session_t *, struct aim_conn_t *, struct aim_directim_priv *, char *destsn);
621 faim_export struct aim_conn_t *aim_directim_connect(struct aim_session_t *, struct aim_conn_t *, struct aim_directim_priv *); 643 faim_export struct aim_conn_t *aim_directim_connect(struct aim_session_t *, struct aim_conn_t *, struct aim_directim_priv *);
622 faim_export unsigned long aim_seticbmparam(struct aim_session_t *, struct aim_conn_t *conn); 644 faim_export unsigned long aim_seticbmparam(struct aim_session_t *, struct aim_conn_t *conn);
623 645
635 #define AIM_CAPS_SENDFILE 0x20 657 #define AIM_CAPS_SENDFILE 0x20
636 #define AIM_CAPS_GAMES 0x40 658 #define AIM_CAPS_GAMES 0x40
637 #define AIM_CAPS_SAVESTOCKS 0x80 659 #define AIM_CAPS_SAVESTOCKS 0x80
638 660
639 faim_export int aim_0002_000b(struct aim_session_t *sess, struct aim_conn_t *conn, const char *sn); 661 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); 662
663 #define AIM_SENDMEMBLOCK_FLAG_ISREQUEST 0
664 #define AIM_SENDMEMBLOCK_FLAG_ISHASH 1
665
666 faim_export int aim_sendmemblock(struct aim_session_t *sess, struct aim_conn_t *conn, unsigned long offset, unsigned long len, const unsigned char *buf, unsigned char flag);
641 667
642 #define AIM_GETINFO_GENERALINFO 0x00001 668 #define AIM_GETINFO_GENERALINFO 0x00001
643 #define AIM_GETINFO_AWAYMESSAGE 0x00003 669 #define AIM_GETINFO_AWAYMESSAGE 0x00003
644 670
645 struct aim_msgcookie_t { 671 struct aim_msgcookie_t {
712 char *lang1; 738 char *lang1;
713 char *charset2; 739 char *charset2;
714 char *lang2; 740 char *lang2;
715 }; 741 };
716 742
717 faim_export unsigned long aim_chat_send_im(struct aim_session_t *sess, struct aim_conn_t *conn, char *msg); 743 #define AIM_CHATFLAGS_NOREFLECT 0x0001
744 #define AIM_CHATFLAGS_AWAY 0x0002
745 faim_export unsigned long aim_chat_send_im(struct aim_session_t *sess, struct aim_conn_t *conn, unsigned short flags, const char *msg, int msglen);
718 faim_export unsigned long aim_chat_join(struct aim_session_t *sess, struct aim_conn_t *conn, u_short exchange, const char *roomname); 746 faim_export unsigned long aim_chat_join(struct aim_session_t *sess, struct aim_conn_t *conn, u_short exchange, const char *roomname);
719 faim_export unsigned long aim_chat_clientready(struct aim_session_t *sess, struct aim_conn_t *conn); 747 faim_export unsigned long aim_chat_clientready(struct aim_session_t *sess, struct aim_conn_t *conn);
720 faim_export int aim_chat_attachname(struct aim_conn_t *conn, char *roomname); 748 faim_export int aim_chat_attachname(struct aim_conn_t *conn, char *roomname);
721 faim_export char *aim_chat_getname(struct aim_conn_t *conn); 749 faim_export char *aim_chat_getname(struct aim_conn_t *conn);
722 faim_export struct aim_conn_t *aim_chat_getconn(struct aim_session_t *, char *name); 750 faim_export struct aim_conn_t *aim_chat_getconn(struct aim_session_t *, char *name);