chiark / gitweb /
server/: Eliminate the remaining address-family-specific knowledge.
[tripe] / server / tripe.h
index 6946c5f171c5cc02b1273e25ac8b4fe5435413cf..f447be50bc11a84f58a063557a6e3be4dabb9096 100644 (file)
@@ -420,10 +420,10 @@ extern const bulkops bulktab[];
 /* --- The address-family table --- */
 
 #define ADDRFAM(_)                                                     \
-  _(INET)
+  _(INET,      want_ipv4)
 
 enum {
-#define ENUM(af) AFIX_##af,
+#define ENUM(af, qf) AFIX_##af,
   ADDRFAM(ENUM)
 #undef ENUM
   NADDRFAM
@@ -432,6 +432,9 @@ enum {
 extern const struct addrfam {
   int af;
   const char *name;
+#ifdef HAVE_LIBADNS
+  adns_queryflags qf;
+#endif
 } aftab[NADDRFAM];
 
 /* --- Socket addresses --- *