]> git.meshlink.io Git - catta/blobdiff - avahi-core/core.h
* make all flags parameters UINT32 when marshalling for DBUS
[catta] / avahi-core / core.h
index 705fa317983ff3afe4774a86a087c34a4751a9e8..e3bf8a3af8e705272f2f47e9c92101c3856189df 100644 (file)
@@ -50,15 +50,6 @@ AVAHI_C_DECL_BEGIN
 /** Maximum number of defined DNS servers for wide area DNS */
 #define AVAHI_MAX_WIDE_AREA_SERVERS 4
 
-/** Flags for server entries */
-typedef enum {
-    AVAHI_ENTRY_NULL = 0,          /**< No special flags */
-    AVAHI_ENTRY_UNIQUE = 1,        /**< The RRset is intended to be unique */
-    AVAHI_ENTRY_NOPROBE = 2,       /**< Though the RRset is intended to be unique no probes shall be sent */
-    AVAHI_ENTRY_NOANNOUNCE = 4,    /**< Do not announce this RR to other hosts */
-    AVAHI_ENTRY_ALLOWMUTIPLE = 8   /**< Allow multiple local records of this type, even if they are intended to be unique */
-} AvahiEntryFlags;
-
 /** Prototype for callback functions which are called whenever the state of an AvahiServer object changes */
 typedef void (*AvahiServerCallback) (AvahiServer *s, AvahiServerState state, void* userdata);
 
@@ -80,6 +71,7 @@ typedef struct AvahiServerConfig {
     int enable_wide_area;             /**< Enable wide area support */
     AvahiAddress wide_area_servers[AVAHI_MAX_WIDE_AREA_SERVERS]; /** Unicast DNS server to use for wide area lookup */
     unsigned n_wide_area_servers;     /**< Number of servers in wide_area_servers[] */
+    int disallow_other_stacks;        /**< Make sure that only one mDNS responder is run at the same time on the local machine. If this is enable Avahi will not set SO_REUSADDR on its sockets, effectively preventing other stacks from running on the local machine */
 } AvahiServerConfig;
 
 /** Allocate a new mDNS responder object. */