diff libpurple/protocols/gg/gg.c @ 32763:326591e64aaa

Gadu-Gadu: move our win32 resolver out of libgadu sources. Refs #343
author tomkiewicz@cpw.pidgin.im
date Mon, 17 Oct 2011 21:25:53 +0000
parents 26ffd7fdba7d
children ef01f180114b
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Mon Oct 17 20:09:23 2011 +0000
+++ b/libpurple/protocols/gg/gg.c	Mon Oct 17 21:25:53 2011 +0000
@@ -47,6 +47,10 @@
 #include "buddylist.h"
 #include "gg-utils.h"
 
+#ifdef _WIN32
+#  include "win32-resolver.h"
+#endif
+
 static PurplePlugin *my_protocol = NULL;
 
 /* Prototypes */
@@ -3000,6 +3004,11 @@
 	my_protocol = plugin;
 
 	gg_debug_handler = purple_gg_debug_handler;
+	
+#ifdef _WIN32
+	gg_global_set_custom_resolver(ggp_resolver_win32thread_start,
+		ggp_resolver_win32thread_cleanup);
+#endif
 }
 
 PURPLE_INIT_PLUGIN(gg, init_plugin, info);