OSX compilation fixes
[lumina.git] / core / include / dns_handler.h
blob8ca935f426e8ed20c9d3d94ee2c19192e34b91ca
1 #ifndef DNS_HANDLER_H
3 #include "config.h"
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <netdb.h> /* addrinfo */
9 struct dns_handler {
10 core_t *core;
13 dns_handler_t *new_dns_handler(core_t *c);
14 void free_dns_handler(dns_handler_t *h);
16 dns_request_t *new_dns_request(dns_handler_t *h, const char *node, const char *service, const struct addrinfo *hints);
18 void dns_handler_queue(dns_handler_t *h, dns_request_t *dr);
20 #endif