for (lookup = client->head; lookup != NULL; lookup = lookup->next)
dns_lookup_switch_ioloop_real(lookup);
}
+
+bool dns_client_has_pending_queries(struct dns_client *client)
+{
+ return client->head != NULL;
+}
const struct dns_lookup_result *, typeof(context))), \
(dns_lookup_callback_t *)callback, context, lookup_r)
+/* Returns true if the DNS client has any pending queries */
+bool dns_client_has_pending_queries(struct dns_client *client);
+
void dns_client_switch_ioloop(struct dns_client *client);
#endif