summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-15 13:46:37 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-15 13:46:37 -0700
commit30816a0cf16b875076cd92d8e2d0e875e6be1cee (patch)
tree811d306241a966722d15ccb272ed79649b9fbdd1
parent04010f7307cc6642a42874c958a5afbeac88210c (diff)
downloadefl-30816a0cf16b875076cd92d8e2d0e875e6be1cee.tar.gz
eina: add support for from in pass through
-rw-r--r--src/modules/eina/mp/pass_through/eina_pass_through.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modules/eina/mp/pass_through/eina_pass_through.c b/src/modules/eina/mp/pass_through/eina_pass_through.c
index 9aa1f22842..8750b6ed78 100644
--- a/src/modules/eina/mp/pass_through/eina_pass_through.c
+++ b/src/modules/eina/mp/pass_through/eina_pass_through.c
@@ -39,6 +39,13 @@ eina_pass_through_free(EINA_UNUSED void *data, void *ptr)
free(ptr);
}
+static Eina_Bool
+eina_pass_through_from(EINA_UNUSED void *data, void *ptr)
+{
+ // Good luck
+ return EINA_TRUE;
+}
+
static void *
eina_pass_through_realloc(EINA_UNUSED void *data, void *ptr, unsigned int size)
{
@@ -68,7 +75,8 @@ static Eina_Mempool_Backend _eina_pass_through_mp_backend = {
NULL,
NULL,
&eina_pass_through_shutdown,
- NULL
+ NULL,
+ &eina_pass_through_from
};
Eina_Bool pass_through_init(void)
@@ -87,4 +95,3 @@ EINA_MODULE_INIT(pass_through_init);
EINA_MODULE_SHUTDOWN(pass_through_shutdown);
#endif /* ! EINA_STATIC_BUILD_PASS_THROUGH */
-