comparison libfaim/im.c @ 1839:109cacf1ff97

[gaim-migrate @ 1849] now we don't require a hash server anymore. but it still has the ability to use one. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 11 May 2001 21:54:27 +0000
parents bacb77b0eb06
children a2624692260b
comparison
equal deleted inserted replaced
1838:bee2239f5952 1839:109cacf1ff97
186 } 186 }
187 187
188 static int outgoingim(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen) 188 static int outgoingim(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
189 { 189 {
190 unsigned int i, ret = 0; 190 unsigned int i, ret = 0;
191 rxcallback_t userfunc; 191 aim_rxcallback_t userfunc;
192 unsigned char cookie[8]; 192 unsigned char cookie[8];
193 int channel; 193 int channel;
194 struct aim_tlvlist_t *tlvlist; 194 struct aim_tlvlist_t *tlvlist;
195 char sn[MAXSNLEN]; 195 char sn[MAXSNLEN];
196 unsigned short icbmflags = 0; 196 unsigned short icbmflags = 0;
250 return ret; 250 return ret;
251 } 251 }
252 252
253 static int incomingim_ch1(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned short channel, struct aim_userinfo_s *userinfo, struct aim_tlvlist_t *tlvlist, unsigned char *cookie) 253 static int incomingim_ch1(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned short channel, struct aim_userinfo_s *userinfo, struct aim_tlvlist_t *tlvlist, unsigned char *cookie)
254 { 254 {
255 rxcallback_t userfunc; 255 aim_rxcallback_t userfunc;
256 int i, j = 0, y = 0, z = 0, ret = 0; 256 int i, j = 0, y = 0, z = 0, ret = 0;
257 char *msg = NULL; 257 char *msg = NULL;
258 unsigned long icbmflags = 0; 258 unsigned long icbmflags = 0;
259 struct aim_tlv_t *msgblocktlv; 259 struct aim_tlv_t *msgblocktlv;
260 unsigned char *msgblock; 260 unsigned char *msgblock;
351 return ret; 351 return ret;
352 } 352 }
353 353
354 static int incomingim_ch2(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned short channel, struct aim_userinfo_s *userinfo, struct aim_tlvlist_t *tlvlist, unsigned char *cookie) 354 static int incomingim_ch2(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned short channel, struct aim_userinfo_s *userinfo, struct aim_tlvlist_t *tlvlist, unsigned char *cookie)
355 { 355 {
356 rxcallback_t userfunc; 356 aim_rxcallback_t userfunc;
357 struct aim_tlv_t *block1; 357 struct aim_tlv_t *block1;
358 struct aim_tlvlist_t *list2; 358 struct aim_tlvlist_t *list2;
359 unsigned short reqclass = 0; 359 unsigned short reqclass = 0;
360 unsigned short status = 0; 360 unsigned short status = 0;
361 int ret = 0; 361 int ret = 0;
802 802
803 static int paraminfo(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen) 803 static int paraminfo(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
804 { 804 {
805 unsigned long defflags, minmsginterval; 805 unsigned long defflags, minmsginterval;
806 unsigned short maxicbmlen, maxsenderwarn, maxrecverwarn, maxchannel; 806 unsigned short maxicbmlen, maxsenderwarn, maxrecverwarn, maxchannel;
807 rxcallback_t userfunc; 807 aim_rxcallback_t userfunc;
808 int i = 0; 808 int i = 0;
809 809
810 maxchannel = aimutil_get16(data+i); 810 maxchannel = aimutil_get16(data+i);
811 i += 2; 811 i += 2;
812 812
832 } 832 }
833 833
834 static int missedcall(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen) 834 static int missedcall(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
835 { 835 {
836 int i = 0; 836 int i = 0;
837 rxcallback_t userfunc; 837 aim_rxcallback_t userfunc;
838 unsigned short channel, nummissed, reason; 838 unsigned short channel, nummissed, reason;
839 struct aim_userinfo_s userinfo; 839 struct aim_userinfo_s userinfo;
840 840
841 /* 841 /*
842 * XXX: supposedly, this entire packet can repeat as many times 842 * XXX: supposedly, this entire packet can repeat as many times
866 return 0; 866 return 0;
867 } 867 }
868 868
869 static int msgack(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen) 869 static int msgack(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
870 { 870 {
871 rxcallback_t userfunc; 871 aim_rxcallback_t userfunc;
872 char sn[MAXSNLEN]; 872 char sn[MAXSNLEN];
873 unsigned char ck[8]; 873 unsigned char ck[8];
874 unsigned short type; 874 unsigned short type;
875 int i = 0; 875 int i = 0;
876 unsigned char snlen; 876 unsigned char snlen;