ecore/ecore_con - Constify return of ecore_con_server_clients_get().

We can't change the returned list, since it's not a copy but the
internal list itself.



SVN revision: 61295
This commit is contained in:
Rafael Antognolli 2011-07-12 14:37:08 +00:00
parent 03d383c201
commit 050b0c7c73
2 changed files with 5 additions and 3 deletions

View File

@ -629,9 +629,11 @@ EAPI Eina_Bool ecore_con_server_connected_get(Ecore_Con_Server *svr);
* @param svr The given server.
* @return The list of clients on this server.
*
* Each node in the returned list points to an @ref Ecore_Con_Client.
* Each node in the returned list points to an @ref Ecore_Con_Client. This list
* cannot be modified or freed. It can also change if new clients are connected
* or disconnected, and will become invalid when the server is deleted/freed.
*/
EAPI Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr);
EAPI const Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr);
/**
* Retrieves the name of server.

View File

@ -549,7 +549,7 @@ ecore_con_server_connected_get(Ecore_Con_Server *svr)
return EINA_TRUE;
}
EAPI Eina_List *
EAPI const Eina_List *
ecore_con_server_clients_get(Ecore_Con_Server *svr)
{
if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))