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

View File

@ -188,6 +188,11 @@ extern uint32_t runtime_flags;
#define SYSTEMD_MASK 0x0010
#define MERGE_MEDIA_DIRS_MASK 0x0020
#define WIDE_LINKS_MASK 0x0040
#ifdef HAVE_AVAHI
#define TIVO_BONJOUR_MASK 0x0080
#else
#define TIVO_BONJOUR_MASK 0x0000
#endif
#define SETFLAG(mask) runtime_flags |= mask
#define GETFLAG(mask) (runtime_flags & mask)