From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 3B187442BB8 for ; Sun, 12 Apr 2020 03:16:50 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQIr-0005lJ-O6 for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:16:50 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:29 +0200 Message-Id: <9489a5779a543258a8fe5775dfd46aa937fe9270.1586650013.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 07/43] build: export src/lua/digest.c symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports a function used by src/lua/digest.lua via FFI. Part of #2971 --- extra/exports | 1 - src/lua/digest.c | 9 +++++++++ src/lua/init.c | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/extra/exports b/extra/exports index 3ef90a414..cb0b823bb 100644 --- a/extra/exports +++ b/extra/exports @@ -2,7 +2,6 @@ # FFI -SHA1internal guava random_bytes fiber_time diff --git a/src/lua/digest.c b/src/lua/digest.c index b0572baf7..c1b1a92c7 100644 --- a/src/lua/digest.c +++ b/src/lua/digest.c @@ -100,3 +100,12 @@ tarantool_lua_digest_init(struct lua_State *L) luaL_register_module(L, "digest", lua_digest_methods); lua_pop(L, 1); }; + +void ** +tarantool_lua_digest_export_syms(void) +{ + static void *syms[] = { + (void *)SHA1internal, + }; + return syms; +} diff --git a/src/lua/init.c b/src/lua/init.c index 823117d94..da1a19ccd 100644 --- a/src/lua/init.c +++ b/src/lua/init.c @@ -731,6 +731,9 @@ tarantool_lua_free() #endif } +void ** +tarantool_lua_digest_export_syms(void); + void ** tarantool_lua_socket_export_syms(void); @@ -742,6 +745,7 @@ tarantool_lua_export_syms(void) { static void *syms[] = { /* Submodules. */ + (void *)tarantool_lua_digest_export_syms, (void *)tarantool_lua_socket_export_syms, }; return syms; -- 2.21.1 (Apple Git-122.3)