forked from enlightenment/efl
ecore_con_server_connected_get now returns Eina_Bool
SVN revision: 52525
This commit is contained in:
parent
9d40676672
commit
fdadea7eca
|
@ -366,7 +366,7 @@ EAPI void * ecore_con_server_del(Ecore_Con_Server *svr);
|
|||
EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr);
|
||||
EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr,
|
||||
void *data);
|
||||
EAPI int ecore_con_server_connected_get(Ecore_Con_Server *svr);
|
||||
EAPI Eina_Bool ecore_con_server_connected_get(Ecore_Con_Server *svr);
|
||||
EAPI Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr);
|
||||
EAPI const char * ecore_con_server_name_get(Ecore_Con_Server *svr);
|
||||
EAPI int ecore_con_server_port_get(Ecore_Con_Server *svr);
|
||||
|
|
|
@ -472,22 +472,22 @@ ecore_con_server_data_set(Ecore_Con_Server *svr, void *data)
|
|||
/**
|
||||
* Retrieves whether the given server is currently connected.
|
||||
* @param svr The given server.
|
||||
* @return @c 1 if the server is connected. @c 0 otherwise.
|
||||
* @return #EINA_TRUE if the server is connected. #EINA_FALSE otherwise.
|
||||
*/
|
||||
EAPI int
|
||||
EAPI Eina_Bool
|
||||
ecore_con_server_connected_get(Ecore_Con_Server *svr)
|
||||
{
|
||||
if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
|
||||
{
|
||||
ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER,
|
||||
"ecore_con_server_connected_get");
|
||||
return 0;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
if (svr->connecting)
|
||||
return 0;
|
||||
return EINA_FALSE;
|
||||
|
||||
return 1;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue