[Tarantool-patches] [PATCH 19/43] build: export src/lib/uri/uri.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:12:59 MSK 2020
Exports functions used by src/lua/uri.lua via FFI.
Part of #2971
---
extra/exports | 2 --
src/exports.c | 2 ++
src/lib/uri/uri.c | 10 ++++++++++
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/extra/exports b/extra/exports
index c95ea2c80..3814202f7 100644
--- a/extra/exports
+++ b/extra/exports
@@ -7,8 +7,6 @@ ibuf_reinit
ibuf_destroy
ibuf_reserve_slow
-uri_parse
-uri_format
PMurHash32
PMurHash32_Process
PMurHash32_Result
diff --git a/src/exports.c b/src/exports.c
index e034c46aa..deb81e887 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -61,6 +61,7 @@ EXPORT(scramble_export_syms);
EXPORT(tarantool_lua_export_syms);
EXPORT(title_export_syms);
EXPORT(tt_uuid_export_syms);
+EXPORT(uri_export_syms);
void
export_syms(void)
@@ -79,6 +80,7 @@ export_syms(void)
tarantool_lua_export_syms,
title_export_syms,
tt_uuid_export_syms,
+ uri_export_syms,
};
const int func_count = sizeof(syms) / sizeof(syms[0]);
for (int i = 0; i < func_count; ++i)
diff --git a/src/lib/uri/uri.c b/src/lib/uri/uri.c
index 8cc82c6f7..3953da517 100644
--- a/src/lib/uri/uri.c
+++ b/src/lib/uri/uri.c
@@ -6340,4 +6340,14 @@ uri_format(char *str, int len, const struct uri *uri, bool write_password)
return total;
}
+void **
+uri_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)uri_format,
+ (void *)uri_parse,
+ };
+ return syms;
+}
+
/* vim: set ft=ragel: */
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list