From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- .../modules/mp/pass_through/eina_pass_through.c | 90 ---------------------- 1 file changed, 90 deletions(-) delete mode 100644 libraries/eina/src/modules/mp/pass_through/eina_pass_through.c (limited to 'libraries/eina/src/modules/mp/pass_through/eina_pass_through.c') diff --git a/libraries/eina/src/modules/mp/pass_through/eina_pass_through.c b/libraries/eina/src/modules/mp/pass_through/eina_pass_through.c deleted file mode 100644 index 196868e..0000000 --- a/libraries/eina/src/modules/mp/pass_through/eina_pass_through.c +++ /dev/null @@ -1,90 +0,0 @@ -/* EINA - EFL data type library - * Copyright (C) 2008 Cedric BAIL - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; - * if not, see . - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include - -#include "eina_types.h" -#include "eina_module.h" -#include "eina_mempool.h" -#include "eina_private.h" - -static void * -eina_pass_through_malloc(__UNUSED__ void *data, unsigned int size) -{ - return malloc(size); -} - -static void -eina_pass_through_free(__UNUSED__ void *data, void *ptr) -{ - free(ptr); -} - -static void * -eina_pass_through_realloc(__UNUSED__ void *data, void *ptr, unsigned int size) -{ - return realloc(ptr, size); -} - -static void * -eina_pass_through_init(__UNUSED__ const char *context, - __UNUSED__ const char *option, - __UNUSED__ va_list args) -{ - return (void *)0x1; -} - -static void -eina_pass_through_shutdown(__UNUSED__ void *data) -{ -} - - -static Eina_Mempool_Backend _eina_pass_through_mp_backend = { - "pass_through", - &eina_pass_through_init, - &eina_pass_through_free, - &eina_pass_through_malloc, - &eina_pass_through_realloc, - NULL, - NULL, - &eina_pass_through_shutdown, - NULL -}; - -Eina_Bool pass_through_init(void) -{ - return eina_mempool_register(&_eina_pass_through_mp_backend); -} - -void pass_through_shutdown(void) -{ - eina_mempool_unregister(&_eina_pass_through_mp_backend); -} - -#ifndef EINA_STATIC_BUILD_PASS_THROUGH - -EINA_MODULE_INIT(pass_through_init); -EINA_MODULE_SHUTDOWN(pass_through_shutdown); - -#endif /* ! EINA_STATIC_BUILD_PASS_THROUGH */ - -- cgit v1.1