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 9C2F1446428 for ; Sun, 12 Apr 2020 03:14:51 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQGx-0005lJ-3y for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:14:51 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:13:18 +0200 Message-Id: <95e2a245fbf42a3e1533380957cec2e87b64b7b0.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 36/43] build: export src/box/tuple.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 visible to the public C API and used by src/box/tuple.lua via FFI. Part of #2971 --- extra/exports | 20 -------------------- src/box/tuple.c | 28 ++++++++++++++++++++++++++++ src/exports.c | 2 ++ 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/extra/exports b/extra/exports index ab26a865a..ba8eb3039 100644 --- a/extra/exports +++ b/extra/exports @@ -2,26 +2,6 @@ # Module API -box_tuple_format_default -box_tuple_new -box_tuple_ref -box_tuple_unref -box_tuple_field_count -box_tuple_bsize -box_tuple_to_buf -box_tuple_format -box_tuple_format_new -box_tuple_format_ref -box_tuple_format_unref -box_tuple_field -box_tuple_iterator -box_tuple_iterator_free -box_tuple_position -box_tuple_rewind -box_tuple_seek -box_tuple_next -box_tuple_update -box_tuple_upsert box_tuple_extract_key box_return_tuple box_space_id_by_name diff --git a/src/box/tuple.c b/src/box/tuple.c index 1f52a8cff..1a0ffe5ed 100644 --- a/src/box/tuple.c +++ b/src/box/tuple.c @@ -767,3 +767,31 @@ mp_str(const char *data) return ""; return buf; } + +void ** +box_tuple_export_syms(void) +{ + static void *syms[] = { + (void *)box_tuple_format, + (void *)box_tuple_format_default, + (void *)box_tuple_format_new, + (void *)box_tuple_format_ref, + (void *)box_tuple_format_unref, + (void *)box_tuple_bsize, + (void *)box_tuple_field, + (void *)box_tuple_field_count, + (void *)box_tuple_iterator, + (void *)box_tuple_iterator_free, + (void *)box_tuple_new, + (void *)box_tuple_next, + (void *)box_tuple_position, + (void *)box_tuple_ref, + (void *)box_tuple_rewind, + (void *)box_tuple_seek, + (void *)box_tuple_to_buf, + (void *)box_tuple_unref, + (void *)box_tuple_update, + (void *)box_tuple_upsert, + }; + return syms; +} diff --git a/src/exports.c b/src/exports.c index 0f9a470e6..400d6a658 100644 --- a/src/exports.c +++ b/src/exports.c @@ -53,6 +53,7 @@ EXPORT(box_key_def_export_syms); EXPORT(box_lua_export_syms); EXPORT(box_schema_export_syms); EXPORT(box_space_export_syms); +EXPORT(box_tuple_export_syms); EXPORT(box_txn_export_syms); EXPORT(clock_export_syms); EXPORT(coio_export_syms); @@ -84,6 +85,7 @@ export_syms(void) box_lua_export_syms, box_schema_export_syms, box_space_export_syms, + box_tuple_export_syms, box_txn_export_syms, clock_export_syms, coio_export_syms, -- 2.21.1 (Apple Git-122.3)