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 09E56446422 for ; Sun, 12 Apr 2020 03:14:14 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQGL-0005lJ-Hd for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:13 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:10 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 29/43] build: export src/lib/core/fiber_cond.c symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports functions used by the public C API. Part of #2971 --- extra/exports | 6 ------ src/exports.c | 2 ++ src/lib/core/fiber_cond.c | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/extra/exports b/extra/exports index 71dc6c3b7..8542c85b0 100644 --- a/extra/exports +++ b/extra/exports @@ -2,12 +2,6 @@ # Module API -fiber_cond_new -fiber_cond_delete -fiber_cond_signal -fiber_cond_broadcast -fiber_cond_wait_timeout -fiber_cond_wait coio_wait coio_close coio_call diff --git a/src/exports.c b/src/exports.c index 388f21341..eda05b094 100644 --- a/src/exports.c +++ b/src/exports.c @@ -56,6 +56,7 @@ EXPORT(crc32_export_syms); EXPORT(crypto_export_syms); EXPORT(csv_export_syms); EXPORT(exception_export_syms); +EXPORT(fiber_cond_export_syms); EXPORT(fiber_export_syms); EXPORT(main_export_syms); EXPORT(PMurHash32_export_syms); @@ -82,6 +83,7 @@ export_syms(void) crypto_export_syms, csv_export_syms, exception_export_syms, + fiber_cond_export_syms, fiber_export_syms, main_export_syms, PMurHash32_export_syms, diff --git a/src/lib/core/fiber_cond.c b/src/lib/core/fiber_cond.c index 4998d6494..95c57286d 100644 --- a/src/lib/core/fiber_cond.c +++ b/src/lib/core/fiber_cond.c @@ -123,3 +123,17 @@ fiber_cond_wait_deadline(struct fiber_cond *c, double deadline) double timeout = deadline - ev_monotonic_now(loop()); return fiber_cond_wait_timeout(c, timeout); } + +void ** +fiber_cond_export_syms(void) +{ + static void *syms[] = { + (void *)fiber_cond_broadcast, + (void *)fiber_cond_delete, + (void *)fiber_cond_new, + (void *)fiber_cond_signal, + (void *)fiber_cond_wait, + (void *)fiber_cond_wait_timeout, + }; + return syms; +} -- 2.21.1 (Apple Git-122.3)