Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Sat Jun 14 21:34:31 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Sat Jun 14 23:21:02 2003 +0000 @@ -19,38 +19,24 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include "internal.h" -#ifndef _WIN32 -#include <netdb.h> -#include <unistd.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#include <sys/socket.h> -#else -#include <winsock.h> -#endif - -#include <errno.h> -#include <string.h> -#include <stdlib.h> -#include <stdio.h> -#include <time.h> -#include <sys/stat.h> -#include <ctype.h> -#include "gaim.h" +#include "account.h" #include "accountopt.h" +#include "debug.h" #include "multi.h" +#include "notify.h" #include "prpl.h" #include "proxy.h" +#include "request.h" +#include "server.h" +#include "util.h" + #include "md5.h" -#ifdef _WIN32 -#include "win32dep.h" -#endif +/* XXX */ +#include "gaim.h" +#include "ui.h" extern char *yahoo_crypt(const char *, const char *); @@ -529,7 +515,7 @@ if (!g_ascii_strncasecmp(msg, "TYPING", strlen("TYPING"))) { if (*stat == '1') - serv_got_typing(gc, from, 0, TYPING); + serv_got_typing(gc, from, 0, GAIM_TYPING); else serv_got_typing_stopped(gc, from); } else if (!g_ascii_strncasecmp(msg, "GAME", strlen("GAME"))) { @@ -1233,7 +1219,7 @@ yahoo_packet_hash(pkt, 49, "TYPING"); yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); yahoo_packet_hash(pkt, 14, " "); - yahoo_packet_hash(pkt, 13, typ == TYPING ? "1" : "0"); + yahoo_packet_hash(pkt, 13, typ == GAIM_TYPING ? "1" : "0"); yahoo_packet_hash(pkt, 5, who); yahoo_packet_hash(pkt, 1002, "1");