[Tarantool-patches] [PATCH 32/43] build: export src/box/lua/tuple.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:14 MSK 2020
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)
More information about the Tarantool-patches
mailing list