From: Christian H. <ch...@us...> - 2003-06-14 23:21:05
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory sc8-pr-cvs1:/tmp/cvs-serv11332/src/protocols/yahoo Modified Files: yahoo.c Log Message: 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! Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.101 retrieving revision 1.102 diff -u -d -r1.101 -r1.102 --- yahoo.c 3 Jun 2003 03:59:43 -0000 1.101 +++ yahoo.c 14 Jun 2003 23:21:02 -0000 1.102 @@ -19,38 +19,24 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ +#include "internal.h" -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#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"); |