[Tarantool-patches] [PATCH 24/43] build: export src/box/space.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:05 MSK 2020
Exports functions used by src/box/lua/schema.lua via FFI.
Part of #2971
---
extra/exports | 2 --
src/box/space.c | 10 ++++++++++
src/exports.c | 2 ++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/extra/exports b/extra/exports
index c6c656c06..07788465f 100644
--- a/extra/exports
+++ b/extra/exports
@@ -8,8 +8,6 @@ ibuf_destroy
ibuf_reserve_slow
space_by_id
-space_run_triggers
-space_bsize
box_schema_version
crypto_EVP_MD_CTX_new
diff --git a/src/box/space.c b/src/box/space.c
index eecbde7fa..6dfe7ce69 100644
--- a/src/box/space.c
+++ b/src/box/space.c
@@ -773,3 +773,13 @@ generic_space_invalidate(struct space *space)
}
/* }}} */
+
+void **
+box_space_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)space_bsize,
+ (void *)space_run_triggers,
+ };
+ return syms;
+}
diff --git a/src/exports.c b/src/exports.c
index cfb952b01..24745e16e 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -49,6 +49,7 @@
*/
EXPORT(base64_export_syms);
+EXPORT(box_space_export_syms);
EXPORT(clock_export_syms);
EXPORT(crc32_export_syms);
EXPORT(csv_export_syms);
@@ -71,6 +72,7 @@ export_syms(void)
{
void *syms[] = {
base64_export_syms,
+ box_space_export_syms,
clock_export_syms,
crc32_export_syms,
csv_export_syms,
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list