1 #ifndef INCLUDED_config_h
5 #ifndef INCLUDED_sys_types_h
7 #define INCLUDED_sys_types_h
10 #ifndef INCLUDED_sys_socket_h
11 #include <sys/socket.h>
12 #define INCLUDED_sys_socket_h
17 #ifndef INCLUDED_netinet_in_h
18 #include <netinet/in.h>
19 #define INCLUDED_netinet_in_h
23 #ifndef INCLUDED_stdint_h
25 #define INCLUDED_stdint_h
29 int irc_getaddrinfo(const char *hostname, const char *servname,
30 const struct addrinfo *hints, struct addrinfo **res);
31 int irc_getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host,
32 size_t hostlen, char *serv, size_t servlen, int flags);
33 void irc_freeaddrinfo(struct addrinfo *ai);