[Tarantool-patches] [PATCH 35/43] build: export src/box/key_def.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:17 MSK 2020
Exports functions visible to the public C API.
Part of #2971
---
extra/exports | 4 ----
src/box/key_def.c | 12 ++++++++++++
src/exports.c | 2 ++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/extra/exports b/extra/exports
index 515887bcb..ab26a865a 100644
--- a/extra/exports
+++ b/extra/exports
@@ -2,8 +2,6 @@
# Module API
-box_key_def_new
-box_key_def_delete
box_tuple_format_default
box_tuple_new
box_tuple_ref
@@ -25,8 +23,6 @@ box_tuple_next
box_tuple_update
box_tuple_upsert
box_tuple_extract_key
-box_tuple_compare
-box_tuple_compare_with_key
box_return_tuple
box_space_id_by_name
box_index_id_by_name
diff --git a/src/box/key_def.c b/src/box/key_def.c
index 3e3782163..09e419c30 100644
--- a/src/box/key_def.c
+++ b/src/box/key_def.c
@@ -891,3 +891,15 @@ key_validate_parts(const struct key_def *key_def, const char *key,
*key_end = key;
return 0;
}
+
+void **
+box_key_def_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)box_key_def_delete,
+ (void *)box_key_def_new,
+ (void *)box_tuple_compare,
+ (void *)box_tuple_compare_with_key,
+ };
+ return syms;
+}
diff --git a/src/exports.c b/src/exports.c
index bb55ab7fa..0f9a470e6 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -49,6 +49,7 @@
*/
EXPORT(base64_export_syms);
+EXPORT(box_key_def_export_syms);
EXPORT(box_lua_export_syms);
EXPORT(box_schema_export_syms);
EXPORT(box_space_export_syms);
@@ -79,6 +80,7 @@ export_syms(void)
{
void *syms[] = {
base64_export_syms,
+ box_key_def_export_syms,
box_lua_export_syms,
box_schema_export_syms,
box_space_export_syms,
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list