From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp50.i.mail.ru (smtp50.i.mail.ru [94.100.177.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 537DE446424 for ; Sun, 12 Apr 2020 03:14:21 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQGS-0005lJ-Rb for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:21 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:12 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 30/43] build: export src/lib/core/coio.cc symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org 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)