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 547734696CD for ; Sun, 12 Apr 2020 03:13:47 +0300 (MSK) Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1jNQFu-0005lJ-UF for tarantool-patches@dev.tarantool.org; Sun, 12 Apr 2020 03:13:47 +0300 From: Vladislav Shpilevoy Date: Sun, 12 Apr 2020 02:12:59 +0200 Message-Id: <7aff68b693f189a247e40dc875da0f87793935ed.1586650014.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 19/43] build: export src/lib/uri/uri.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/lua/uri.lua via FFI. Part of #2971 --- extra/exports | 2 -- src/exports.c | 2 ++ src/lib/uri/uri.c | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/extra/exports b/extra/exports index c95ea2c80..3814202f7 100644 --- a/extra/exports +++ b/extra/exports @@ -7,8 +7,6 @@ ibuf_reinit ibuf_destroy ibuf_reserve_slow -uri_parse -uri_format PMurHash32 PMurHash32_Process PMurHash32_Result diff --git a/src/exports.c b/src/exports.c index e034c46aa..deb81e887 100644 --- a/src/exports.c +++ b/src/exports.c @@ -61,6 +61,7 @@ EXPORT(scramble_export_syms); EXPORT(tarantool_lua_export_syms); EXPORT(title_export_syms); EXPORT(tt_uuid_export_syms); +EXPORT(uri_export_syms); void export_syms(void) @@ -79,6 +80,7 @@ export_syms(void) tarantool_lua_export_syms, title_export_syms, tt_uuid_export_syms, + uri_export_syms, }; const int func_count = sizeof(syms) / sizeof(syms[0]); for (int i = 0; i < func_count; ++i) diff --git a/src/lib/uri/uri.c b/src/lib/uri/uri.c index 8cc82c6f7..3953da517 100644 --- a/src/lib/uri/uri.c +++ b/src/lib/uri/uri.c @@ -6340,4 +6340,14 @@ uri_format(char *str, int len, const struct uri *uri, bool write_password) return total; } +void ** +uri_export_syms(void) +{ + static void *syms[] = { + (void *)uri_format, + (void *)uri_parse, + }; + return syms; +} + /* vim: set ft=ragel: */ -- 2.21.1 (Apple Git-122.3)