@ -477,12 +477,12 @@ CARES_EXTERN int ares_init_options(ares_channel_t **channelp
const struct ares_options * options ,
const struct ares_options * options ,
int optmask ) ;
int optmask ) ;
CARES_EXTERN int ares_save_options ( ares_channel_t * channel ,
CARES_EXTERN int ares_save_options ( const ares_channel_t * channel ,
struct ares_options * options , int * optmask ) ;
struct ares_options * options , int * optmask ) ;
CARES_EXTERN void ares_destroy_options ( struct ares_options * options ) ;
CARES_EXTERN void ares_destroy_options ( struct ares_options * options ) ;
CARES_EXTERN int ares_dup ( ares_channel_t * * dest , ares_channel_t * src ) ;
CARES_EXTERN int ares_dup ( ares_channel_t * * dest , const ares_channel_t * src ) ;
CARES_EXTERN ares_status_t ares_reinit ( ares_channel_t * channel ) ;
CARES_EXTERN ares_status_t ares_reinit ( ares_channel_t * channel ) ;
@ -512,8 +512,10 @@ CARES_EXTERN void ares_set_socket_callback(ares_channel_t *ch
CARES_EXTERN void ares_set_socket_configure_callback (
CARES_EXTERN void ares_set_socket_configure_callback (
ares_channel_t * channel , ares_sock_config_callback callback , void * user_data ) ;
ares_channel_t * channel , ares_sock_config_callback callback , void * user_data ) ;
CARES_EXTERN void ares_set_server_state_callback (
CARES_EXTERN void
ares_channel_t * channel , ares_server_state_callback callback , void * user_data ) ;
ares_set_server_state_callback ( ares_channel_t * channel ,
ares_server_state_callback callback ,
void * user_data ) ;
CARES_EXTERN int ares_set_sortlist ( ares_channel_t * channel ,
CARES_EXTERN int ares_set_sortlist ( ares_channel_t * channel ,
const char * sortstr ) ;
const char * sortstr ) ;
@ -632,15 +634,15 @@ CARES_EXTERN void ares_getnameinfo(ares_channel_t *channel,
CARES_EXTERN CARES_DEPRECATED_FOR (
CARES_EXTERN CARES_DEPRECATED_FOR (
ARES_OPT_EVENT_THREAD or
ARES_OPT_EVENT_THREAD or
ARES_OPT_SOCK_STATE_CB ) int ares_fds ( ares_channel_t * channel ,
ARES_OPT_SOCK_STATE_CB ) int ares_fds ( const ares_channel_t * channel ,
fd_set * read_fds , fd_set * write_fds ) ;
fd_set * read_fds , fd_set * write_fds ) ;
CARES_EXTERN CARES_DEPRECATED_FOR (
CARES_EXTERN CARES_DEPRECATED_FOR (
ARES_OPT_EVENT_THREAD or
ARES_OPT_EVENT_THREAD or
ARES_OPT_SOCK_STATE_CB ) int ares_getsock ( ares_channel_t * channel ,
ARES_OPT_SOCK_STATE_CB ) int ares_getsock ( const ares_channel_t * channel ,
ares_socket_t * socks , int numsocks ) ;
ares_socket_t * socks , int numsocks ) ;
CARES_EXTERN struct timeval * ares_timeout ( ares_channel_t * channel ,
CARES_EXTERN struct timeval * ares_timeout ( const ares_channel_t * channel ,
struct timeval * maxtv ,
struct timeval * maxtv ,
struct timeval * tv ) ;
struct timeval * tv ) ;
@ -866,22 +868,24 @@ CARES_EXTERN CARES_DEPRECATED_FOR(ares_set_servers_csv) int ares_set_servers(
ares_channel_t * channel , const struct ares_addr_node * servers ) ;
ares_channel_t * channel , const struct ares_addr_node * servers ) ;
CARES_EXTERN
CARES_EXTERN
CARES_DEPRECATED_FOR ( ares_set_servers_ports_csv ) int ares_set_servers_ports (
CARES_DEPRECATED_FOR ( ares_set_servers_ports_csv )
ares_channel_t * channel , const struct ares_addr_port_node * servers ) ;
int ares_set_servers_ports ( ares_channel_t * channel ,
const struct ares_addr_port_node * servers ) ;
/* Incoming string format: host[:port][,host[:port]]... */
/* Incoming string format: host[:port][,host[:port]]... */
CARES_EXTERN int ares_set_servers_csv ( ares_channel_t * channel ,
CARES_EXTERN int ares_set_servers_csv ( ares_channel_t * channel ,
const char * servers ) ;
const char * servers ) ;
CARES_EXTERN int ares_set_servers_ports_csv ( ares_channel_t * channel ,
CARES_EXTERN int ares_set_servers_ports_csv ( ares_channel_t * channel ,
const char * servers ) ;
const char * servers ) ;
CARES_EXTERN char * ares_get_servers_csv ( ares_channel_t * channel ) ;
CARES_EXTERN char * ares_get_servers_csv ( const ares_channel_t * channel ) ;
CARES_EXTERN CARES_DEPRECATED_FOR ( ares_get_servers_csv ) int ares_get_servers (
CARES_EXTERN CARES_DEPRECATED_FOR ( ares_get_servers_csv ) int ares_get_servers (
ares_channel_t * channel , struct ares_addr_node * * servers ) ;
const ares_channel_t * channel , struct ares_addr_node * * servers ) ;
CARES_EXTERN
CARES_EXTERN
CARES_DEPRECATED_FOR ( ares_get_servers_ports_csv ) int ares_get_servers_ports (
CARES_DEPRECATED_FOR ( ares_get_servers_ports_csv )
ares_channel_t * channel , struct ares_addr_port_node * * servers ) ;
int ares_get_servers_ports ( const ares_channel_t * channel ,
struct ares_addr_port_node * * servers ) ;
CARES_EXTERN const char * ares_inet_ntop ( int af , const void * src , char * dst ,
CARES_EXTERN const char * ares_inet_ntop ( int af , const void * src , char * dst ,
ares_socklen_t size ) ;
ares_socklen_t size ) ;
@ -915,7 +919,7 @@ CARES_EXTERN ares_status_t ares_queue_wait_empty(ares_channel_t *channel,
* \ param [ in ] channel Initialized ares channel
* \ param [ in ] channel Initialized ares channel
* \ return Number of active queries to servers
* \ return Number of active queries to servers
*/
*/
CARES_EXTERN size_t ares_queue_active_queries ( ares_channel_t * channel ) ;
CARES_EXTERN size_t ares_queue_active_queries ( const ares_channel_t * channel ) ;
# ifdef __cplusplus
# ifdef __cplusplus
}
}