Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_ipc
Modified Files:
Ecore_Ipc.h ecore_ipc.c
Log Message:
add flush calls.
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_ipc/Ecore_Ipc.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- Ecore_Ipc.h 30 Mar 2006 08:12:17 -0000 1.17
+++ Ecore_Ipc.h 16 Feb 2007 18:12:38 -0000 1.18
@@ -303,6 +303,7 @@
EAPI void ecore_ipc_server_data_size_max_set(Ecore_Ipc_Server
*srv, int size);
EAPI int ecore_ipc_server_data_size_max_get(Ecore_Ipc_Server
*srv);
EAPI char *ecore_ipc_server_ip_get(Ecore_Ipc_Server *svr);
+ EAPI void ecore_ipc_server_flush(Ecore_Ipc_Server *svr);
/* FIXME: this needs to become an ipc message */
EAPI int ecore_ipc_client_send(Ecore_Ipc_Client *cl, int
major, int minor, int ref, int ref_to, int response, void *data, int size);
@@ -313,6 +314,7 @@
EAPI void ecore_ipc_client_data_size_max_set(Ecore_Ipc_Client
*cl, int size);
EAPI int ecore_ipc_client_data_size_max_get(Ecore_Ipc_Client
*cl);
EAPI char *ecore_ipc_client_ip_get(Ecore_Ipc_Client *cl);
+ EAPI void ecore_ipc_client_flush(Ecore_Ipc_Client *cl);
EAPI int ecore_ipc_ssl_available_get(void);
/* FIXME: need to add a callback to "ok" large ipc messages greater than */
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_ipc/ecore_ipc.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ecore_ipc.c 5 Nov 2006 14:19:56 -0000 1.40
+++ ecore_ipc.c 16 Feb 2007 18:12:38 -0000 1.41
@@ -693,6 +693,23 @@
return ecore_con_server_ip_get(svr->server);
}
+/**
+ * Flushes all pending data to the given server. Will return when done.
+ *
+ * @param svr The given server.
+ * @ingroup Ecore_Ipc_Server_Group
+ */
+EAPI void
+ecore_ipc_server_flush(Ecore_Ipc_Server *svr)
+{
+ if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_IPC_SERVER))
+ {
+ ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_IPC_SERVER,
+ "ecore_ipc_server_server_flush");
+ return;
+ }
+ ecore_con_server_flush(svr->server);
+}
#define CLENC(_member) \
d = _ecore_ipc_dlt_int(msg._member, cl->prev.o._member, &md); \
@@ -936,6 +953,24 @@
return NULL;
}
return ecore_con_client_ip_get(cl->client);
+}
+
+/**
+ * Flushes all pending data to the given client. Will return when done.
+ *
+ * @param cl The given client.
+ * @ingroup Ecore_Ipc_Client_Group
+ */
+EAPI void
+ecore_ipc_client_flush(Ecore_Ipc_Client *cl)
+{
+ if (!ECORE_MAGIC_CHECK(cl, ECORE_MAGIC_IPC_CLIENT))
+ {
+ ECORE_MAGIC_FAIL(cl, ECORE_MAGIC_IPC_CLIENT,
+ "ecore_ipc_client_flush");
+ return;
+ }
+ ecore_con_client_flush(cl->client);
}
/**
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs