From 09b7763cc7b8080dc6c3e7cbc0326f54b3214dee Mon Sep 17 00:00:00 2001 From: discomfitor Date: Tue, 21 Sep 2010 01:48:46 +0000 Subject: [PATCH] ecore_con_server_connected_get now returns Eina_Bool git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@52525 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/Ecore_Con.h | 2 +- src/lib/ecore_con/ecore_con.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h index f822df3..4d0eacb 100644 --- a/src/lib/ecore_con/Ecore_Con.h +++ b/src/lib/ecore_con/Ecore_Con.h @@ -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); diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 7515a33..dcc54a0 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -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; } /** -- 2.7.4