# HG changeset patch # User Mark Doliner # Date 1080841332 0 # Node ID 9aa6017da568b0e63d1da03829164da7dd31f5df # Parent 07059ef55c9c5a5d9a5522c1f1879410cc583ec3 [gaim-migrate @ 9288] Might as well have this up to date with the small changes I'd made committer: Tailor Script diff -r 07059ef55c9c -r 9aa6017da568 src/protocols/rendezvous/.cvsignore --- a/src/protocols/rendezvous/.cvsignore Thu Apr 01 17:41:30 2004 +0000 +++ b/src/protocols/rendezvous/.cvsignore Thu Apr 01 17:42:12 2004 +0000 @@ -2,8 +2,8 @@ Makefile .deps .libs -librendezvous.la -rendezvous.lo librendezvous.def librendezvous.dll librendezvous.lib +*.la +*.lo diff -r 07059ef55c9c -r 9aa6017da568 src/protocols/rendezvous/mdns.c --- a/src/protocols/rendezvous/mdns.c Thu Apr 01 17:41:30 2004 +0000 +++ b/src/protocols/rendezvous/mdns.c Thu Apr 01 17:42:12 2004 +0000 @@ -34,18 +34,7 @@ * OVERFLOW SECURITY HOLES!!! */ -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - +#include "internal.h" #include "debug.h" #include "mdns.h" diff -r 07059ef55c9c -r 9aa6017da568 src/protocols/rendezvous/mdns.h --- a/src/protocols/rendezvous/mdns.h Thu Apr 01 17:41:30 2004 +0000 +++ b/src/protocols/rendezvous/mdns.h Thu Apr 01 17:42:12 2004 +0000 @@ -26,13 +26,7 @@ #ifndef _MDNS_H_ #define _MDNS_H_ -#include -#include -#include -#include -#include -#include - +#include "internal.h" #include "debug.h" /* diff -r 07059ef55c9c -r 9aa6017da568 src/protocols/rendezvous/rendezvous.c --- a/src/protocols/rendezvous/rendezvous.c Thu Apr 01 17:41:30 2004 +0000 +++ b/src/protocols/rendezvous/rendezvous.c Thu Apr 01 17:42:12 2004 +0000 @@ -19,9 +19,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include - #include "internal.h" #include "account.h" @@ -64,7 +61,7 @@ g_free(rb); } -/* +/** * Extract the "user@host" name from a full presence domain * of the form "user@host._presence._tcp.local" * @@ -127,6 +124,7 @@ serv_got_update(gc, b->name, 0, 0, 0, 0, 0); gaim_blist_remove_buddy(b); + /* XXX - This results in incorrect group counts--needs to be fixed in the core */ } static void rendezvous_removeallfromlocal(GaimConnection *gc) @@ -214,6 +212,8 @@ g_free(rb->msg); rb->msg = g_strdup(tmp1); } + + /* XXX - Use the TTL value of the rr to cause this data to expire */ } /* @@ -354,15 +354,12 @@ rd = g_new0(RendezvousData, 1); rd->buddies = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, rendezvous_buddy_free); - gc->proto_data = rd; gaim_connection_update_progress(gc, _("Preparing Buddy List"), 0, RENDEZVOUS_CONNECT_STEPS); - rendezvous_removeallfromlocal(gc); gaim_connection_update_progress(gc, _("Connecting"), 1, RENDEZVOUS_CONNECT_STEPS); - rd->fd = mdns_establish_socket(); if (rd->fd == -1) { gaim_connection_error(gc, _("Unable to login to rendezvous")); @@ -370,7 +367,6 @@ } gc->inpa = gaim_input_add(rd->fd, GAIM_INPUT_READ, rendezvous_callback, gc); - gaim_connection_set_state(gc, GAIM_CONNECTED); mdns_query(rd->fd, "_presence._tcp.local");