[Tarantool-patches] [PATCH 36/43] build: export src/box/tuple.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:18 MSK 2020
Exports functions visible to the public C API and used by
src/box/tuple.lua via FFI.
Part of #2971
---
extra/exports | 20 --------------------
src/box/tuple.c | 28 ++++++++++++++++++++++++++++
src/exports.c | 2 ++
3 files changed, 30 insertions(+), 20 deletions(-)
diff --git a/extra/exports b/extra/exports
index ab26a865a..ba8eb3039 100644
--- a/extra/exports
+++ b/extra/exports
@@ -2,26 +2,6 @@
# Module API
-box_tuple_format_default
-box_tuple_new
-box_tuple_ref
-box_tuple_unref
-box_tuple_field_count
-box_tuple_bsize
-box_tuple_to_buf
-box_tuple_format
-box_tuple_format_new
-box_tuple_format_ref
-box_tuple_format_unref
-box_tuple_field
-box_tuple_iterator
-box_tuple_iterator_free
-box_tuple_position
-box_tuple_rewind
-box_tuple_seek
-box_tuple_next
-box_tuple_update
-box_tuple_upsert
box_tuple_extract_key
box_return_tuple
box_space_id_by_name
diff --git a/src/box/tuple.c b/src/box/tuple.c
index 1f52a8cff..1a0ffe5ed 100644
--- a/src/box/tuple.c
+++ b/src/box/tuple.c
@@ -767,3 +767,31 @@ mp_str(const char *data)
return "<failed to format message pack>";
return buf;
}
+
+void **
+box_tuple_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)box_tuple_format,
+ (void *)box_tuple_format_default,
+ (void *)box_tuple_format_new,
+ (void *)box_tuple_format_ref,
+ (void *)box_tuple_format_unref,
+ (void *)box_tuple_bsize,
+ (void *)box_tuple_field,
+ (void *)box_tuple_field_count,
+ (void *)box_tuple_iterator,
+ (void *)box_tuple_iterator_free,
+ (void *)box_tuple_new,
+ (void *)box_tuple_next,
+ (void *)box_tuple_position,
+ (void *)box_tuple_ref,
+ (void *)box_tuple_rewind,
+ (void *)box_tuple_seek,
+ (void *)box_tuple_to_buf,
+ (void *)box_tuple_unref,
+ (void *)box_tuple_update,
+ (void *)box_tuple_upsert,
+ };
+ return syms;
+}
diff --git a/src/exports.c b/src/exports.c
index 0f9a470e6..400d6a658 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -53,6 +53,7 @@ EXPORT(box_key_def_export_syms);
EXPORT(box_lua_export_syms);
EXPORT(box_schema_export_syms);
EXPORT(box_space_export_syms);
+EXPORT(box_tuple_export_syms);
EXPORT(box_txn_export_syms);
EXPORT(clock_export_syms);
EXPORT(coio_export_syms);
@@ -84,6 +85,7 @@ export_syms(void)
box_lua_export_syms,
box_schema_export_syms,
box_space_export_syms,
+ box_tuple_export_syms,
box_txn_export_syms,
clock_export_syms,
coio_export_syms,
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list