forked from enlightenment/efl
Change ecore_con_dns_gethostbyname() to ecore_con_dns_lookup()
SVN revision: 16307
This commit is contained in:
parent
a815f4ffcf
commit
e9dfdea2e9
|
@ -163,9 +163,9 @@ extern "C" {
|
|||
EAPI int ecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url);
|
||||
EAPI int ecore_con_url_send(Ecore_Con_Url *url_con, void *data, size_t length, char *content_type);
|
||||
|
||||
EAPI int ecore_con_dns_gethostbyname(const char *name,
|
||||
void (*done_cb)(struct hostent *hostent, void *data),
|
||||
void *data);
|
||||
EAPI int ecore_con_dns_lookup(const char *name,
|
||||
void (*done_cb)(struct hostent *hostent, void *data),
|
||||
void *data);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <time.h>
|
||||
#endif
|
||||
|
||||
static void _ecore_con_cb_gethostbyname(struct hostent *he, void *data);
|
||||
static void _ecore_con_cb_dns_lookup(struct hostent *he, void *data);
|
||||
static void _ecore_con_server_free(Ecore_Con_Server *svr);
|
||||
static void _ecore_con_client_free(Ecore_Con_Client *cl);
|
||||
static int _ecore_con_svr_handler(void *data, Ecore_Fd_Handler *fd_handler);
|
||||
|
@ -442,7 +442,7 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
|
|||
}
|
||||
else if (type == ECORE_CON_REMOTE_SYSTEM)
|
||||
{
|
||||
ecore_con_dns_gethostbyname(name, _ecore_con_cb_gethostbyname, svr);
|
||||
ecore_con_dns_lookup(name, _ecore_con_cb_dns_lookup, svr);
|
||||
}
|
||||
|
||||
#if USE_OPENSSL
|
||||
|
@ -899,7 +899,7 @@ kill_server(Ecore_Con_Server *svr)
|
|||
}
|
||||
|
||||
static void
|
||||
_ecore_con_cb_gethostbyname(struct hostent *he, void *data)
|
||||
_ecore_con_cb_dns_lookup(struct hostent *he, void *data)
|
||||
{
|
||||
Ecore_Con_Server *svr;
|
||||
struct sockaddr_in socket_addr;
|
||||
|
|
|
@ -231,9 +231,9 @@ ecore_con_dns_shutdown(void)
|
|||
}
|
||||
|
||||
int
|
||||
ecore_con_dns_gethostbyname(const char *name,
|
||||
void (*done_cb)(struct hostent *hostent, void *data),
|
||||
void *data)
|
||||
ecore_con_dns_lookup(const char *name,
|
||||
void (*done_cb)(struct hostent *hostent, void *data),
|
||||
void *data)
|
||||
{
|
||||
Ecore_Con_Dns_Query *query;
|
||||
|
||||
|
|
Loading…
Reference in New Issue