summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-08-24 10:30:27 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-08-24 10:30:27 +0000
commit56ab90d0e42aeae4e979ceb50ed3cb4fddba073f (patch)
tree72b05a0b8bda3f0ad5176e97e02e4da07764b7a5 /legacy
parentc5fe5abff2f5fed4910cc7836066b3c93f899256 (diff)
eet: add eet_connection_empty.
This is needed to fix a bug when multiplexing eet_connection with something else. SVN revision: 75651
Diffstat (limited to 'legacy')
-rw-r--r--legacy/eet/ChangeLog4
-rw-r--r--legacy/eet/NEWS1
-rw-r--r--legacy/eet/src/lib/Eet.h14
-rw-r--r--legacy/eet/src/lib/eet_connection.c6
4 files changed, 25 insertions, 0 deletions
diff --git a/legacy/eet/ChangeLog b/legacy/eet/ChangeLog
index ce6ba0ec78..8079e308f5 100644
--- a/legacy/eet/ChangeLog
+++ b/legacy/eet/ChangeLog
@@ -611,3 +611,7 @@
6112012-08-09 Cedric Bail 6112012-08-09 Cedric Bail
612 612
613 * Don't copy string around for nothing. 613 * Don't copy string around for nothing.
614
6152012-08-24 Cedric Bail
616
617 * Add eet_connection_empty.
diff --git a/legacy/eet/NEWS b/legacy/eet/NEWS
index 4b8370c5ec..a84db86210 100644
--- a/legacy/eet/NEWS
+++ b/legacy/eet/NEWS
@@ -5,6 +5,7 @@ Changes since Eet 1.6.0:
5 5
6Additions: 6Additions:
7 * Add code to detect overrun and underrun during Eet Data Descriptor setup. 7 * Add code to detect overrun and underrun during Eet Data Descriptor setup.
8 * Add eet_connection_empty.
8 9
9Fixes: 10Fixes:
10 * Force destruction of all pending file when shuting down eet. 11 * Force destruction of all pending file when shuting down eet.
diff --git a/legacy/eet/src/lib/Eet.h b/legacy/eet/src/lib/Eet.h
index 864bdf8024..a60f562b43 100644
--- a/legacy/eet/src/lib/Eet.h
+++ b/legacy/eet/src/lib/Eet.h
@@ -4192,6 +4192,20 @@ eet_connection_received(Eet_Connection *conn,
4192 size_t size); 4192 size_t size);
4193 4193
4194/** 4194/**
4195 * Tell if the Eet_Connection as received some partial data.
4196 * @param conn Connection handler to request.
4197 * @return EINA_TRUE if there is some data pending inside, EINA_FALSE otherwise.
4198 *
4199 * Eet_Connection buffer data until the received data can be unserialized correctly. This
4200 * function let you know if there is some data inside that buffer waiting for more data to
4201 * be received before being processed.
4202 *
4203 * @since 1.7
4204 * @ingroup Eet_Connection_Group
4205 */
4206EAPI Eina_Bool eet_connection_empty(Eet_Connection *conn);
4207
4208/**
4195 * Convert a complex structure and prepare it to be send. 4209 * Convert a complex structure and prepare it to be send.
4196 * @param conn Connection handler to track. 4210 * @param conn Connection handler to track.
4197 * @param edd The data descriptor to use when encoding. 4211 * @param edd The data descriptor to use when encoding.
diff --git a/legacy/eet/src/lib/eet_connection.c b/legacy/eet/src/lib/eet_connection.c
index 7b6b934596..c044e3d11a 100644
--- a/legacy/eet/src/lib/eet_connection.c
+++ b/legacy/eet/src/lib/eet_connection.c
@@ -170,6 +170,12 @@ _eet_connection_raw_send(Eet_Connection *conn,
170} 170}
171 171
172EAPI Eina_Bool 172EAPI Eina_Bool
173eet_connection_empty(Eet_Connection *conn)
174{
175 return conn->size ? EINA_FALSE : EINA_TRUE;
176}
177
178EAPI Eina_Bool
173eet_connection_send(Eet_Connection *conn, 179eet_connection_send(Eet_Connection *conn,
174 Eet_Data_Descriptor *edd, 180 Eet_Data_Descriptor *edd,
175 const void *data_in, 181 const void *data_in,