struct _CB_Data
{
- Ecore_List2 __list_data;
+ EINA_INLIST;
void (*cb_done) (void *data, struct hostent *hostent);
void *data;
Ecore_Fd_Handler *fdh;
static int _ecore_con_dns_exit_handler(void *data, int type __UNUSED__, void *event);
static int dns_init = 0;
-static Ecore_List2 *dns_slaves = NULL;
+static CB_Data *dns_slaves = NULL;
int
ecore_con_dns_init(void)
dns_init--;
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;
}
close(fd[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;
}
static void
_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));
ecore_main_fd_handler_del(cbdata->fdh);
ecore_event_handler_del(cbdata->handler);
struct _CB_Data
{
- Ecore_List2 __list_data;
+ EINA_INLIST;
Ecore_Con_Info_Cb cb_done;
void *data;
Ecore_Fd_Handler *fdh;
static int _ecore_con_info_exit_handler(void *data, int type __UNUSED__, void *event);
static int info_init = 0;
-static Ecore_List2 *info_slaves = NULL;
+static CB_Data *info_slaves = NULL;
EAPI int
ecore_con_info_init(void)
info_init--;
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;
}
close(fd[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;
}
static void
_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));
ecore_main_fd_handler_del(cbdata->fdh);
ecore_event_handler_del(cbdata->handler);