Commit c74b3a1b authored by Jason Toffaletti's avatar Jason Toffaletti

removed global state used for callbacks, convert to/from in_addr/in6_addr where needed

--HG--
extra : transplant_source : %8C%89%81Gfk%A4%FD%9D%5E4%0CNp%A2%E2%F4%A6%C9%F6
parent 83d4ed7f
cdef extern from "arpa/inet.h":
struct in_addr
char *inet_ntoa(in_addr n)
cdef extern from "netinet/in.h":
cdef enum:
INET6_ADDRSTRLEN
cdef extern from "sys/socket.h":
cdef enum:
AF_INET
AF_INET6
cdef extern from "arpa/inet.h":
struct in_addr:
pass
struct in6_addr:
pass
ctypedef int socklen_t
char *inet_ntoa(in_addr n)
int inet_aton(char *cp, in_addr *inp)
int inet_pton(int af, char *src, void *dst)
char *inet_ntop(int af, void *src, char *dst, socklen_t size)
cdef extern from "evdns.h":
ctypedef void (*evdns_handler)(int result, char t, int count, int ttl,
......@@ -12,9 +31,9 @@ cdef extern from "evdns.h":
void *arg)
int evdns_resolve_ipv6(char *name, int flags, evdns_handler callback,
void *arg)
int evdns_resolve_reverse(char *ip, int flags, evdns_handler callback,
int evdns_resolve_reverse(in_addr *ip, int flags, evdns_handler callback,
void *arg)
int evdns_resolve_reverse_ipv6(char *ip, int flags, evdns_handler callback,
int evdns_resolve_reverse_ipv6(in6_addr *ip, int flags, evdns_handler callback,
void *arg)
void evdns_shutdown(int fail_requests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment