chiark / gitweb /
resolved: implement negative caching
[elogind.git] / src / resolve / resolved-dns-server.h
index adceb868a32576fd6869cd9ae301c2df5384e880..2b0b99649d2d77154d8169cf9279070a035a03dd 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include "in-addr-util.h"
+
 typedef struct DnsServer DnsServer;
 typedef enum DnsServerSource DnsServerSource;
 
-#include "in-addr-util.h"
 #include "resolved.h"
 #include "resolved-link.h"
 #include "resolved-dns-server.h"
@@ -40,12 +41,12 @@ struct DnsServer {
         Manager *manager;
         DnsServerSource source;
 
-        unsigned char family;
-        union in_addr_union address;
+        Link *link;
 
-        bool marked;
+        int family;
+        union in_addr_union address;
 
-        Link *link;
+        bool marked:1;
 
         LIST_FIELDS(DnsServer, servers);
 };
@@ -55,7 +56,7 @@ int dns_server_new(
                 DnsServer **s,
                 DnsServerSource source,
                 Link *l,
-                unsigned char family,
-                union in_addr_union *in_addr);
+                int family,
+                const union in_addr_union *address);
 
 DnsServer* dns_server_free(DnsServer *s);