forked from enlightenment/efl
* ecore: Remove Ecore_List2 from ecore_con.
SVN revision: 41071
This commit is contained in:
parent
8e392a0742
commit
429fc4b4f8
|
@ -51,7 +51,7 @@ typedef struct _CB_Data CB_Data;
|
||||||
|
|
||||||
struct _CB_Data
|
struct _CB_Data
|
||||||
{
|
{
|
||||||
Ecore_List2 __list_data;
|
EINA_INLIST;
|
||||||
void (*cb_done) (void *data, struct hostent *hostent);
|
void (*cb_done) (void *data, struct hostent *hostent);
|
||||||
void *data;
|
void *data;
|
||||||
Ecore_Fd_Handler *fdh;
|
Ecore_Fd_Handler *fdh;
|
||||||
|
@ -66,7 +66,7 @@ static int _ecore_con_dns_data_handler(void *data, Ecore_Fd_Handler *fd_handler)
|
||||||
static int _ecore_con_dns_exit_handler(void *data, int type __UNUSED__, void *event);
|
static int _ecore_con_dns_exit_handler(void *data, int type __UNUSED__, void *event);
|
||||||
|
|
||||||
static int dns_init = 0;
|
static int dns_init = 0;
|
||||||
static Ecore_List2 *dns_slaves = NULL;
|
static CB_Data *dns_slaves = NULL;
|
||||||
|
|
||||||
int
|
int
|
||||||
ecore_con_dns_init(void)
|
ecore_con_dns_init(void)
|
||||||
|
@ -81,7 +81,7 @@ ecore_con_dns_shutdown(void)
|
||||||
dns_init--;
|
dns_init--;
|
||||||
if (dns_init == 0)
|
if (dns_init == 0)
|
||||||
{
|
{
|
||||||
while (dns_slaves) _ecore_con_dns_slave_free((CB_Data *)dns_slaves);
|
while (dns_slaves) _ecore_con_dns_slave_free(dns_slaves);
|
||||||
}
|
}
|
||||||
return dns_init;
|
return dns_init;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ ecore_con_dns_lookup(const char *name,
|
||||||
close(fd[0]);
|
close(fd[0]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
dns_slaves = _ecore_list2_append(dns_slaves, cbdata);
|
dns_slaves = (CB_Data *) eina_inlist_append(EINA_INLIST_GET(dns_slaves), EINA_INLIST_GET(cbdata));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ _ecore_con_dns_readdata(CB_Data *cbdata)
|
||||||
static void
|
static void
|
||||||
_ecore_con_dns_slave_free(CB_Data *cbdata)
|
_ecore_con_dns_slave_free(CB_Data *cbdata)
|
||||||
{
|
{
|
||||||
dns_slaves = _ecore_list2_remove(dns_slaves, cbdata);
|
dns_slaves = (CB_Data *) eina_inlist_remove(EINA_INLIST_GET(dns_slaves), EINA_INLIST_GET(cbdata));
|
||||||
close(ecore_main_fd_handler_fd_get(cbdata->fdh));
|
close(ecore_main_fd_handler_fd_get(cbdata->fdh));
|
||||||
ecore_main_fd_handler_del(cbdata->fdh);
|
ecore_main_fd_handler_del(cbdata->fdh);
|
||||||
ecore_event_handler_del(cbdata->handler);
|
ecore_event_handler_del(cbdata->handler);
|
||||||
|
|
|
@ -32,7 +32,7 @@ typedef struct _CB_Data CB_Data;
|
||||||
|
|
||||||
struct _CB_Data
|
struct _CB_Data
|
||||||
{
|
{
|
||||||
Ecore_List2 __list_data;
|
EINA_INLIST;
|
||||||
Ecore_Con_Info_Cb cb_done;
|
Ecore_Con_Info_Cb cb_done;
|
||||||
void *data;
|
void *data;
|
||||||
Ecore_Fd_Handler *fdh;
|
Ecore_Fd_Handler *fdh;
|
||||||
|
@ -48,7 +48,7 @@ static int _ecore_con_info_data_handler(void *data, Ecore_Fd_Handler *fd_handler
|
||||||
static int _ecore_con_info_exit_handler(void *data, int type __UNUSED__, void *event);
|
static int _ecore_con_info_exit_handler(void *data, int type __UNUSED__, void *event);
|
||||||
|
|
||||||
static int info_init = 0;
|
static int info_init = 0;
|
||||||
static Ecore_List2 *info_slaves = NULL;
|
static CB_Data *info_slaves = NULL;
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_con_info_init(void)
|
ecore_con_info_init(void)
|
||||||
|
@ -63,7 +63,7 @@ ecore_con_info_shutdown(void)
|
||||||
info_init--;
|
info_init--;
|
||||||
if (info_init == 0)
|
if (info_init == 0)
|
||||||
{
|
{
|
||||||
while (info_slaves) _ecore_con_info_slave_free((CB_Data *)info_slaves);
|
while (info_slaves) _ecore_con_info_slave_free(info_slaves);
|
||||||
}
|
}
|
||||||
return info_init;
|
return info_init;
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ on_error:
|
||||||
close(fd[0]);
|
close(fd[0]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
info_slaves = _ecore_list2_append(info_slaves, cbdata);
|
info_slaves = (CB_Data *) eina_inlist_append(EINA_INLIST_GET(info_slaves), EINA_INLIST_GET(cbdata));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ _ecore_con_info_readdata(CB_Data *cbdata)
|
||||||
static void
|
static void
|
||||||
_ecore_con_info_slave_free(CB_Data *cbdata)
|
_ecore_con_info_slave_free(CB_Data *cbdata)
|
||||||
{
|
{
|
||||||
info_slaves = _ecore_list2_remove(info_slaves, cbdata);
|
info_slaves = (CB_Data *) eina_inlist_remove(EINA_INLIST_GET(info_slaves), EINA_INLIST_GET(cbdata));
|
||||||
close(ecore_main_fd_handler_fd_get(cbdata->fdh));
|
close(ecore_main_fd_handler_fd_get(cbdata->fdh));
|
||||||
ecore_main_fd_handler_del(cbdata->fdh);
|
ecore_main_fd_handler_del(cbdata->fdh);
|
||||||
ecore_event_handler_del(cbdata->handler);
|
ecore_event_handler_del(cbdata->handler);
|
||||||
|
|
Loading…
Reference in New Issue