tivo: Add Avahi support

TiVo Bolt doesn't support the old TiVo Beacon discovery mechanism, so
we need to support Bonjour discovery now.  Use Avahi if it's available.
This commit is contained in:
Justin Maggard
2017-04-28 01:18:53 -07:00
parent 58a5f61d46
commit 0575299a87
9 changed files with 325 additions and 14 deletions

9
avahi.h Normal file
View File

@@ -0,0 +1,9 @@
#include "config.h"
#if defined(TIVO_SUPPORT) && defined(HAVE_AVAHI)
void tivo_bonjour_register(void);
void tivo_bonjour_unregister(void);
#else
static inline void tivo_bonjour_register(void) {};
static inline void tivo_bonjour_unregister(void) {};
#endif