Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 5872:059d95c67cda
[gaim-migrate @ 6304]
The legendary Header File Cleanup! Files now only include what they need.
This should reduce the number of files that must recompile when a header
file changes. It's a lot nicer. Trust me on it. I also added a couple new
header files. I hope I didn't break TOO much!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 14 Jun 2003 23:21:02 +0000 |
parents | 43ea75092684 |
children | 7d385de2f9cd |
comparison
equal
deleted
inserted
replaced
5871:508adf90fbb9 | 5872:059d95c67cda |
---|---|
17 * You should have received a copy of the GNU General Public License | 17 * You should have received a copy of the GNU General Public License |
18 * along with this program; if not, write to the Free Software | 18 * along with this program; if not, write to the Free Software |
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 * | 20 * |
21 */ | 21 */ |
22 | 22 #include "internal.h" |
23 #ifdef HAVE_CONFIG_H | 23 |
24 #include "config.h" | 24 #include "account.h" |
25 #endif | |
26 | |
27 #ifndef _WIN32 | |
28 #include <netdb.h> | |
29 #include <unistd.h> | |
30 #include <netinet/in.h> | |
31 #include <arpa/inet.h> | |
32 #include <sys/socket.h> | |
33 #else | |
34 #include <winsock.h> | |
35 #endif | |
36 | |
37 #include <errno.h> | |
38 #include <string.h> | |
39 #include <stdlib.h> | |
40 #include <stdio.h> | |
41 #include <time.h> | |
42 #include <sys/stat.h> | |
43 #include <ctype.h> | |
44 #include "gaim.h" | |
45 #include "accountopt.h" | 25 #include "accountopt.h" |
26 #include "debug.h" | |
46 #include "multi.h" | 27 #include "multi.h" |
28 #include "notify.h" | |
47 #include "prpl.h" | 29 #include "prpl.h" |
48 #include "proxy.h" | 30 #include "proxy.h" |
31 #include "request.h" | |
32 #include "server.h" | |
33 #include "util.h" | |
34 | |
49 #include "md5.h" | 35 #include "md5.h" |
50 | 36 |
51 #ifdef _WIN32 | 37 /* XXX */ |
52 #include "win32dep.h" | 38 #include "gaim.h" |
53 #endif | 39 #include "ui.h" |
54 | 40 |
55 extern char *yahoo_crypt(const char *, const char *); | 41 extern char *yahoo_crypt(const char *, const char *); |
56 | 42 |
57 /* #define YAHOO_DEBUG */ | 43 /* #define YAHOO_DEBUG */ |
58 | 44 |
527 if (!msg) | 513 if (!msg) |
528 return; | 514 return; |
529 | 515 |
530 if (!g_ascii_strncasecmp(msg, "TYPING", strlen("TYPING"))) { | 516 if (!g_ascii_strncasecmp(msg, "TYPING", strlen("TYPING"))) { |
531 if (*stat == '1') | 517 if (*stat == '1') |
532 serv_got_typing(gc, from, 0, TYPING); | 518 serv_got_typing(gc, from, 0, GAIM_TYPING); |
533 else | 519 else |
534 serv_got_typing_stopped(gc, from); | 520 serv_got_typing_stopped(gc, from); |
535 } else if (!g_ascii_strncasecmp(msg, "GAME", strlen("GAME"))) { | 521 } else if (!g_ascii_strncasecmp(msg, "GAME", strlen("GAME"))) { |
536 struct buddy *bud = gaim_find_buddy(gc->account, from); | 522 struct buddy *bud = gaim_find_buddy(gc->account, from); |
537 void *free1=NULL, *free2=NULL; | 523 void *free1=NULL, *free2=NULL; |
1231 struct yahoo_data *yd = gc->proto_data; | 1217 struct yahoo_data *yd = gc->proto_data; |
1232 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_NOTIFY, YAHOO_STATUS_TYPING, 0); | 1218 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_NOTIFY, YAHOO_STATUS_TYPING, 0); |
1233 yahoo_packet_hash(pkt, 49, "TYPING"); | 1219 yahoo_packet_hash(pkt, 49, "TYPING"); |
1234 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); | 1220 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); |
1235 yahoo_packet_hash(pkt, 14, " "); | 1221 yahoo_packet_hash(pkt, 14, " "); |
1236 yahoo_packet_hash(pkt, 13, typ == TYPING ? "1" : "0"); | 1222 yahoo_packet_hash(pkt, 13, typ == GAIM_TYPING ? "1" : "0"); |
1237 yahoo_packet_hash(pkt, 5, who); | 1223 yahoo_packet_hash(pkt, 5, who); |
1238 yahoo_packet_hash(pkt, 1002, "1"); | 1224 yahoo_packet_hash(pkt, 1002, "1"); |
1239 | 1225 |
1240 yahoo_send_packet(yd, pkt); | 1226 yahoo_send_packet(yd, pkt); |
1241 | 1227 |