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 7700C45C319 for ; Sun, 12 Apr 2020 03:13:59 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQG6-0005lJ-Vd for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:13:59 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:05 +0200 Message-Id: <2ee174715930c8a57ac7167560284568480f7c3f.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 24/43] build: export src/box/space.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 src/box/lua/schema.lua via FFI. Part of #2971 --- extra/exports | 2 -- src/box/space.c | 10 ++++++++++ src/exports.c | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/extra/exports b/extra/exports index c6c656c06..07788465f 100644 --- a/extra/exports +++ b/extra/exports @@ -8,8 +8,6 @@ ibuf_destroy ibuf_reserve_slow space_by_id -space_run_triggers -space_bsize box_schema_version crypto_EVP_MD_CTX_new diff --git a/src/box/space.c b/src/box/space.c index eecbde7fa..6dfe7ce69 100644 --- a/src/box/space.c +++ b/src/box/space.c @@ -773,3 +773,13 @@ generic_space_invalidate(struct space *space) } /* }}} */ + +void ** +box_space_export_syms(void) +{ + static void *syms[] = { + (void *)space_bsize, + (void *)space_run_triggers, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index cfb952b01..24745e16e 100644 --- a/src/exports.c +++ b/src/exports.c @@ -49,6 +49,7 @@ */ EXPORT(base64_export_syms); +EXPORT(box_space_export_syms); EXPORT(clock_export_syms); EXPORT(crc32_export_syms); EXPORT(csv_export_syms); @@ -71,6 +72,7 @@ export_syms(void) { void *syms[] = { base64_export_syms, + box_space_export_syms, clock_export_syms, crc32_export_syms, csv_export_syms, -- 2.21.1 (Apple Git-122.3)