Update of /cvsroot/playerstage/code/player/libplayersd
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17231
Modified Files:
playersd_mdns.c
Log Message:
Index: playersd_mdns.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayersd/playersd_mdns.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** playersd_mdns.c 25 Sep 2007 21:04:10 -0000 1.4
--- playersd_mdns.c 25 Sep 2007 21:06:56 -0000 1.5
***************
*** 47,51 ****
#include <errno.h>
! #include <sys/poll.h>
#include <dns_sd.h>
--- 47,51 ----
#include <errno.h>
! //#include <sys/poll.h>
#include <dns_sd.h>
***************
*** 157,162 ****
player_sd_mdns_dev_t* dev;
char nameBuf[PLAYER_SD_NAME_MAXLEN];
! struct pollfd ufds[1];
! int numready;
// Find a spot for this device
--- 157,162 ----
player_sd_mdns_dev_t* dev;
char nameBuf[PLAYER_SD_NAME_MAXLEN];
! //struct pollfd ufds[1];
! //int numready;
// Find a spot for this device
***************
*** 236,240 ****
return(-1);
}
!
// mDNSResponder will return the kDNSServiceErr_NameConflict by callback.
// Unfortunately, Avahi never invokes our callback (!). So we poll
--- 236,240 ----
return(-1);
}
! #if 0
// mDNSResponder will return the kDNSServiceErr_NameConflict by callback.
// Unfortunately, Avahi never invokes our callback (!). So we poll
***************
*** 271,276 ****
--- 271,278 ----
return(-1);
}
+ #endif
else
{
+ dev->valid = 1;
if(strcmp(nameBuf,name))
PLAYER_WARN2("Changing service name of %s to %s\n",
***************
*** 290,293 ****
--- 292,296 ----
void *context)
{
+ #if 0
DNSServiceErrorType sdErr;
player_sd_mdns_dev_t* dev = (player_sd_mdns_dev_t*)context;
***************
*** 335,337 ****
--- 338,341 ----
dev->fail = 1;
}
+ #endif
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit