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 203DD45C31A for ; Sun, 12 Apr 2020 03:14:02 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQG9-0005lJ-K0 for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:02 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:06 +0200 Message-Id: <4a7dbf77ee92d74b07a5692cac26557b1dd9b58e.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 25/43] build: export src/box/schema.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 used by src/box/lua/schema.lua via FFI. Part of #2971 --- extra/exports | 3 --- src/box/schema.cc | 9 +++++++++ src/exports.c | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/extra/exports b/extra/exports index 07788465f..111dad57e 100644 --- a/extra/exports +++ b/extra/exports @@ -7,9 +7,6 @@ ibuf_reinit ibuf_destroy ibuf_reserve_slow -space_by_id -box_schema_version - crypto_EVP_MD_CTX_new crypto_EVP_MD_CTX_free crypto_HMAC_CTX_new diff --git a/src/box/schema.cc b/src/box/schema.cc index 456eef429..0a04b3d56 100644 --- a/src/box/schema.cc +++ b/src/box/schema.cc @@ -718,3 +718,12 @@ schema_find_name(enum schema_object_type type, uint32_t object_id) return "(nil)"; } +extern "C" void ** +box_schema_export_syms(void) +{ + static void *syms[] = { + (void *)box_schema_version, + (void *)space_by_id, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index 24745e16e..a939954c7 100644 --- a/src/exports.c +++ b/src/exports.c @@ -49,6 +49,7 @@ */ EXPORT(base64_export_syms); +EXPORT(box_schema_export_syms); EXPORT(box_space_export_syms); EXPORT(clock_export_syms); EXPORT(crc32_export_syms); @@ -72,6 +73,7 @@ export_syms(void) { void *syms[] = { base64_export_syms, + box_schema_export_syms, box_space_export_syms, clock_export_syms, crc32_export_syms, -- 2.21.1 (Apple Git-122.3)