]> git.meshlink.io Git - catta/blobdiff - avahi-core/server.h
Adapt to undocumented hack (passing 0:0 in tv to mean "now") that probably got introd...
[catta] / avahi-core / server.h
index 600e4422972ab0c03ed3b85e4f0b81809bf9a51e..1723250ea4f9aa35a5b4f859220f26fcca49f775 100644 (file)
@@ -42,6 +42,8 @@ typedef struct AvahiEntry AvahiEntry;
 
 #define AVAHI_MAX_LEGACY_UNICAST_REFLECT_SLOTS 100
 
+#define AVAHI_FLAGS_VALID(flags, max) (!((flags) & ~(max)))
+
 typedef struct AvahiLegacyUnicastReflectSlot AvahiLegacyUnicastReflectSlot;
 
 struct AvahiLegacyUnicastReflectSlot {
@@ -61,7 +63,7 @@ struct AvahiEntry {
 
     int dead;
     
-    AvahiEntryFlags flags;
+    AvahiPublishFlags flags;
     AvahiRecord *record;
     AvahiIfIndex interface;
     AvahiProtocol protocol;
@@ -86,6 +88,8 @@ struct AvahiSEntryGroup {
     unsigned n_register_try;
     struct timeval register_time;
     AvahiTimeEvent *register_time_event;
+
+    struct timeval established_at;
     
     AVAHI_LLIST_FIELDS(AvahiSEntryGroup, groups);
     AVAHI_LLIST_HEAD(AvahiEntry, entries);