[Tarantool-patches] [PATCH 30/43] build: export src/lib/core/coio.cc symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:12 MSK 2020
Exports functions visible to the public C API.
Part of #2971
---
extra/exports | 4 ----
src/exports.c | 2 ++
src/lib/core/coio.cc | 12 ++++++++++++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/extra/exports b/extra/exports
index 8542c85b0..cd28bb221 100644
--- a/extra/exports
+++ b/extra/exports
@@ -2,10 +2,6 @@
# Module API
-coio_wait
-coio_close
-coio_call
-coio_getaddrinfo
luaL_pushcdata
luaL_checkcdata
luaL_setcdatagc
diff --git a/src/exports.c b/src/exports.c
index eda05b094..f0b3d667f 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -52,6 +52,7 @@ EXPORT(base64_export_syms);
EXPORT(box_schema_export_syms);
EXPORT(box_space_export_syms);
EXPORT(clock_export_syms);
+EXPORT(coio_export_syms);
EXPORT(crc32_export_syms);
EXPORT(crypto_export_syms);
EXPORT(csv_export_syms);
@@ -79,6 +80,7 @@ export_syms(void)
box_schema_export_syms,
box_space_export_syms,
clock_export_syms,
+ coio_export_syms,
crc32_export_syms,
crypto_export_syms,
csv_export_syms,
diff --git a/src/lib/core/coio.cc b/src/lib/core/coio.cc
index 6a113aa47..bd9154694 100644
--- a/src/lib/core/coio.cc
+++ b/src/lib/core/coio.cc
@@ -806,3 +806,15 @@ coio_write_fd_timeout(int fd, const void *data, size_t size, ev_tstamp timeout)
}
return 0;
}
+
+extern "C" void **
+coio_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)coio_call,
+ (void *)coio_close,
+ (void *)coio_getaddrinfo,
+ (void *)coio_wait,
+ };
+ return syms;
+}
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list