diff options
Diffstat (limited to 'src/modules/mp/pass_through')
-rw-r--r-- | src/modules/mp/pass_through/Makefile.am | 28 | ||||
-rw-r--r-- | src/modules/mp/pass_through/eina_pass_through.c | 90 |
2 files changed, 0 insertions, 118 deletions
diff --git a/src/modules/mp/pass_through/Makefile.am b/src/modules/mp/pass_through/Makefile.am deleted file mode 100644 index 33bd58c..0000000 --- a/src/modules/mp/pass_through/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -MAINTAINERCLEANFILES = Makefile.in - -AM_CPPFLAGS = \ --I. \ --I$(top_srcdir)/src/include \ --I$(top_builddir)/src/include \ --I$(top_srcdir)/src/lib \ --I$(top_builddir)/src/lib \ -@EFL_EINA_BUILD@ - -controllerdir = $(libdir)//eina/modules/mp/pass_through/$(MODULE_ARCH) -controller_LTLIBRARIES = module.la - -module_la_SOURCES = \ -eina_pass_through.c - -module_la_CFLAGS = @EINA_CFLAGS@ -module_la_LIBADD = $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ -module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version -module_la_LIBTOOLFLAGS = --tag=disable-static - -install-data-hook: - rm -f $(DESTDIR)$(controllerdir)/$(controller_LTLIBRARIES) -uninstall-hook: - rm -f $(DESTDIR)$(controllerdir)/module.* - -clean-local: - rm -rf *.gcno diff --git a/src/modules/mp/pass_through/eina_pass_through.c b/src/modules/mp/pass_through/eina_pass_through.c deleted file mode 100644 index 196868e..0000000 --- a/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 <http://www.gnu.org/licenses/>. - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include <stdlib.h> - -#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 */ - |