diff src/protocols/jabber/jabber.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 8b1b660519f6
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Sat Jun 14 21:34:31 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Sat Jun 14 23:21:02 2003 +0000
@@ -19,47 +19,36 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "internal.h"
+
+#ifdef _WIN32
+# include "utsname.h"
 #endif
 
-#include <sys/types.h>
-/*this must happen before sys/socket.h or freebsd won't compile*/
-
-#ifndef _WIN32
-#include <netdb.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-#include <sys/utsname.h>
-#include <unistd.h>
-#else
-#include "utsname.h"
-#endif
-
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <sys/stat.h>
+#include "account.h"
+#include "accountopt.h"
+#include "conversation.h"
+#include "debug.h"
+#include "ft.h"
+#include "multi.h"
+#include "notify.h"
+#include "prpl.h"
+#include "request.h"
+#include "util.h"
+
+/* XXX */
 #include "gaim.h"
-#include "accountopt.h"
-#include "multi.h"
-#include "prpl.h"
+
 #ifdef MAX
-#undef MAX
+# undef MAX
 #endif
 #ifdef MIN
-#undef MIN
+# undef MIN
 #endif
+
 #include "jabber.h"
 #include "proxy.h"
 
-#ifdef _WIN32
-#include "win32dep.h"
-#endif
-
 static GaimPlugin *my_protocol = NULL;
 
 /* The priv member of gjconn's is a gaim_connection for now. */
@@ -1093,6 +1082,7 @@
 	return jri;
 }
 
+#if 0
 static gboolean jabber_is_default_resource(GaimConnection *gc, const char *who)
 {
 	jab_res_info jri = jabber_find_resource(gc, who);
@@ -1107,6 +1097,7 @@
 	g_free(buddy);
 	return FALSE;
 }
+#endif
 
 /*
  * if the resource doesn't exist, create it.  otherwise, just update the priority
@@ -1413,7 +1404,7 @@
 			/* a non-message message! */
 			from = g_strdup_printf("%s@%s", p->from->user, p->from->server);
 			if(typing)
-				serv_got_typing(GJ_GC(gjc), from, 0, TYPING);
+				serv_got_typing(GJ_GC(gjc), from, 0, GAIM_TYPING);
 			else
 				serv_got_typing_stopped(GJ_GC(gjc), from);
 			g_free(from);
@@ -2484,7 +2475,7 @@
 	y = xmlnode_insert_tag(x, "x");
 	xmlnode_put_attrib(y, "xmlns", "jabber:x:event");
 
-	if(typing == TYPING)
+	if(typing == GAIM_TYPING)
 		xmlnode_insert_tag(y, "composing");
 
 	gjab_send(((struct jabber_data *)gc->proto_data)->gjc, x);