summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_con/Ecore_Con.h2
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
index f822df30b8..4d0eacbbab 100644
--- a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
+++ b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
@@ -366,7 +366,7 @@ EAPI void * ecore_con_server_del(Ecore_Con_Server *svr);
366EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr); 366EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr);
367EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr, 367EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr,
368 void *data); 368 void *data);
369EAPI int ecore_con_server_connected_get(Ecore_Con_Server *svr); 369EAPI Eina_Bool ecore_con_server_connected_get(Ecore_Con_Server *svr);
370EAPI Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr); 370EAPI Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr);
371EAPI const char * ecore_con_server_name_get(Ecore_Con_Server *svr); 371EAPI const char * ecore_con_server_name_get(Ecore_Con_Server *svr);
372EAPI int ecore_con_server_port_get(Ecore_Con_Server *svr); 372EAPI int ecore_con_server_port_get(Ecore_Con_Server *svr);
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con.c b/legacy/ecore/src/lib/ecore_con/ecore_con.c
index 7515a33c38..dcc54a090c 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con.c
@@ -472,22 +472,22 @@ ecore_con_server_data_set(Ecore_Con_Server *svr, void *data)
472/** 472/**
473 * Retrieves whether the given server is currently connected. 473 * Retrieves whether the given server is currently connected.
474 * @param svr The given server. 474 * @param svr The given server.
475 * @return @c 1 if the server is connected. @c 0 otherwise. 475 * @return #EINA_TRUE if the server is connected. #EINA_FALSE otherwise.
476 */ 476 */
477EAPI int 477EAPI Eina_Bool
478ecore_con_server_connected_get(Ecore_Con_Server *svr) 478ecore_con_server_connected_get(Ecore_Con_Server *svr)
479{ 479{
480 if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER)) 480 if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
481 { 481 {
482 ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER, 482 ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER,
483 "ecore_con_server_connected_get"); 483 "ecore_con_server_connected_get");
484 return 0; 484 return EINA_FALSE;
485 } 485 }
486 486
487 if (svr->connecting) 487 if (svr->connecting)
488 return 0; 488 return EINA_FALSE;
489 489
490 return 1; 490 return EINA_TRUE;
491} 491}
492 492
493/** 493/**