added IsZCdaemonRunning() to zeroconf to test availability of the daemon #612

Merged
merged 3 commits into from Jan 7, 2012

2 participants

@wsoltys
Team Kodi member

If the daemon isn't running the guisettings of zeroconf and airplay are disabled (others as airtunes can be added too). This is only implemented for win32. For the other ports IsZCdaemonRunning() returns always true.

IsZCdaemonRunning() uses DNSServiceGetProperty once which should be fast enough for setups without bonjour.

@wsoltys
Team Kodi member

I know that OSX and Linux probably won't need the check but I would like to have it at this point rather than in zeroconfwin.
If the compiler isn't smart enough we can ifdef it out.

@mkortstiege
Team Kodi member

Compiled just fine here. No problems on Linux.

@wsoltys
Team Kodi member

@CrystalP : thoughts?

@wsoltys wsoltys merged commit 2d869e5 into xbmc:master Jan 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment