From dd440d97a6c36c9381fdbea214186da8b3998d70 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Sun, 5 Jan 2014 14:49:58 +0900 Subject: [PATCH] Remove unecessary ABI wrapper Change-Id: I2d28ed8027b6ff0c4d90c07594520ea9f083d8ca --- include/abi.h | 3 --- src/abi.c | 30 ------------------------------ 2 files changed, 33 deletions(-) diff --git a/include/abi.h b/include/abi.h index e407219..5c611d7 100644 --- a/include/abi.h +++ b/include/abi.h @@ -36,7 +36,4 @@ extern int script_buffer_raw_size(void *buffer); extern int script_buffer_signal_emit(void *buffer_handle, const char *part, const char *signal, double x, double y, double ex, double ey); -extern int script_buffer_init(void); -extern int script_buffer_fini(void); - /* End of a file */ diff --git a/src/abi.c b/src/abi.c index 8988a82..98a42c8 100644 --- a/src/abi.c +++ b/src/abi.c @@ -368,36 +368,6 @@ int script_buffer_unlock(void *handle) return buffer_unlock(handle); } -int script_buffer_init(void) -{ - static int (*buffer_init)(void) = NULL; - - if (!buffer_init) { - buffer_init = dlsym(RTLD_DEFAULT, "buffer_handler_init"); - if (!buffer_init) { - ErrPrint("broken ABI: %s\n", dlerror()); - return LB_STATUS_ERROR_NOT_IMPLEMENTED; - } - } - - return buffer_init(); -} - -int script_buffer_fini(void) -{ - static int (*buffer_fini)(void) = NULL; - - if (!buffer_fini) { - buffer_fini = dlsym(RTLD_DEFAULT, "buffer_handler_fini"); - if (!buffer_fini) { - ErrPrint("broken ABI: %s\n", dlerror()); - return LB_STATUS_ERROR_NOT_IMPLEMENTED; - } - } - - return buffer_fini(); -} - int script_buffer_signal_emit(void *buffer_handle, const char *part, const char *signal, double x, double y, double ex, double ey) { static int (*signal_emit)(void *buffer_handle, const char *part, const char *signal, double x, double y, double ex, double ey) = NULL; -- 2.7.4