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 5292F44642B for ; Sun, 12 Apr 2020 03:14:58 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQH3-0005lJ-Qo for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:58 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:19 +0200 Message-Id: <434cde5af6bb339e7dacfc2ce76c9d673ce99dde.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 37/43] build: export src/box/index.cc symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Exports a function visible to the public C API. Part of #2971 --- extra/exports | 11 ----------- src/box/index.cc | 19 +++++++++++++++++++ src/exports.c | 2 ++ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/extra/exports b/extra/exports index ba8eb3039..51420a322 100644 --- a/extra/exports +++ b/extra/exports @@ -2,7 +2,6 @@ # Module API -box_tuple_extract_key box_return_tuple box_space_id_by_name box_index_id_by_name @@ -17,16 +16,6 @@ box_sequence_next box_sequence_current box_sequence_set box_sequence_reset -box_index_iterator -box_iterator_next -box_iterator_free -box_index_len -box_index_bsize -box_index_random -box_index_get -box_index_min -box_index_max -box_index_count box_error_type box_error_code box_error_message diff --git a/src/box/index.cc b/src/box/index.cc index c2fc00867..bd45d0c57 100644 --- a/src/box/index.cc +++ b/src/box/index.cc @@ -767,3 +767,22 @@ disabled_index_replace(struct index *index, struct tuple *old_tuple, } /* }}} */ + +extern "C" void ** +box_index_export_syms(void) +{ + static void *syms[] = { + (void *)box_index_bsize, + (void *)box_index_count, + (void *)box_index_get, + (void *)box_index_iterator, + (void *)box_index_len, + (void *)box_index_max, + (void *)box_index_min, + (void *)box_index_random, + (void *)box_iterator_next, + (void *)box_iterator_free, + (void *)box_tuple_extract_key, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index 400d6a658..7fc38f642 100644 --- a/src/exports.c +++ b/src/exports.c @@ -49,6 +49,7 @@ */ EXPORT(base64_export_syms); +EXPORT(box_index_export_syms); EXPORT(box_key_def_export_syms); EXPORT(box_lua_export_syms); EXPORT(box_schema_export_syms); @@ -81,6 +82,7 @@ export_syms(void) { void *syms[] = { base64_export_syms, + box_index_export_syms, box_key_def_export_syms, box_lua_export_syms, box_schema_export_syms, -- 2.21.1 (Apple Git-122.3)