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 C0BD3446426 for ; Sun, 12 Apr 2020 03:14:29 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQGb-0005lJ-9T for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:29 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:14 +0200 Message-Id: <8b39e8e96d78d746ad1950729d9a8f870bc553a4.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 32/43] build: export src/box/lua/tuple.c symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports functions visible to the public C API. Part of #2971 --- extra/exports | 3 --- src/box/lua/init.c | 12 ++++++++++++ src/box/lua/tuple.c | 11 +++++++++++ src/exports.c | 2 ++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/extra/exports b/extra/exports index 8a676e18b..30dbb63ff 100644 --- a/extra/exports +++ b/extra/exports @@ -2,9 +2,6 @@ # Module API -luaT_checktuple -luaT_pushtuple -luaT_istuple luaT_error box_txn box_txn_begin diff --git a/src/box/lua/init.c b/src/box/lua/init.c index 63e8b8216..fb35ea56c 100644 --- a/src/box/lua/init.c +++ b/src/box/lua/init.c @@ -441,3 +441,15 @@ box_lua_init(struct lua_State *L) assert(lua_gettop(L) == 0); } + +void ** +box_lua_tuple_export_syms(void); + +void ** +box_lua_export_syms(void) +{ + static void *syms[] = { + (void *)box_lua_tuple_export_syms, + }; + return syms; +} diff --git a/src/box/lua/tuple.c b/src/box/lua/tuple.c index 1e3c3d65c..957d68014 100644 --- a/src/box/lua/tuple.c +++ b/src/box/lua/tuple.c @@ -597,3 +597,14 @@ box_lua_tuple_init(struct lua_State *L) CTID_STRUCT_TUPLE_REF = luaL_ctypeid(L, "struct tuple &"); assert(CTID_STRUCT_TUPLE_REF != 0); } + +void ** +box_lua_tuple_export_syms(void) +{ + static void *syms[] = { + (void *)luaT_checktuple, + (void *)luaT_istuple, + (void *)luaT_pushtuple, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index f0b3d667f..cd409fae5 100644 --- a/src/exports.c +++ b/src/exports.c @@ -49,6 +49,7 @@ */ EXPORT(base64_export_syms); +EXPORT(box_lua_export_syms); EXPORT(box_schema_export_syms); EXPORT(box_space_export_syms); EXPORT(clock_export_syms); @@ -77,6 +78,7 @@ export_syms(void) { void *syms[] = { base64_export_syms, + box_lua_export_syms, box_schema_export_syms, box_space_export_syms, clock_export_syms, -- 2.21.1 (Apple Git-122.3)