From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: tarantool-patches@dev.tarantool.org, korablev@tarantool.org, imun@tarantool.org Subject: [Tarantool-patches] [PATCH 0/3] box_return_mp Date: Sun, 8 Mar 2020 18:47:32 +0100 [thread overview] Message-ID: <cover.1583689251.git.v.shpilevoy@tarantool.org> (raw) The patchset extends the public C API with a function box_return_mp(). It allows to return arbitrary MessagePack from user's code. First patch is not really related to the ticket, but related to struct port, which is touched here. Second patch introduces a new struct port - port_c. It replaces port_tuple for stored C functions, and is able to store both tuples and raw MessagePack. Third patch introduces the new public function. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4641-c-function-ret-mp Issue: https://github.com/tarantool/tarantool/issues/4641 @ChangeLog - box_return_mp() - new C API function to return arbitrary MessagePack from stored C functions (gh-4641). Vladislav Shpilevoy (3): box: fix struct port_tuple.size wrong type in Lua box: introduce port_c box: introduce box_return_mp() public C function extra/exports | 1 + src/box/box.cc | 8 +- src/box/box.h | 19 ++++ src/box/func.c | 2 +- src/box/lua/misc.cc | 20 ++++ src/box/lua/schema.lua | 2 +- src/box/port.c | 191 ++++++++++++++++++++++++++++++++++-- src/box/port.h | 50 ++++++++++ src/box/sql/func.c | 22 +++-- test/box/function1.c | 37 +++++++ test/box/function1.result | 31 ++++++ test/box/function1.test.lua | 14 +++ 12 files changed, 375 insertions(+), 22 deletions(-) -- 2.21.1 (Apple Git-122.3)
next reply other threads:[~2020-03-08 17:47 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-08 17:47 Vladislav Shpilevoy [this message] 2020-03-08 17:47 ` [Tarantool-patches] [PATCH 1/3] box: fix struct port_tuple.size wrong type in Lua Vladislav Shpilevoy 2020-03-10 13:42 ` Nikita Pettik 2020-03-11 0:17 ` Vladislav Shpilevoy 2020-03-08 17:47 ` [Tarantool-patches] [PATCH 2/3] box: introduce port_c Vladislav Shpilevoy 2020-03-26 17:49 ` Nikita Pettik 2020-04-23 0:14 ` Vladislav Shpilevoy 2020-04-27 14:09 ` Nikita Pettik 2020-04-27 21:28 ` Vladislav Shpilevoy 2020-04-27 23:24 ` Nikita Pettik 2020-04-03 14:12 ` Igor Munkin 2020-04-23 0:14 ` Vladislav Shpilevoy 2020-03-08 17:47 ` [Tarantool-patches] [PATCH 3/3] box: introduce box_return_mp() public C function Vladislav Shpilevoy 2020-03-26 17:51 ` Nikita Pettik 2020-04-03 14:13 ` Igor Munkin 2020-04-23 0:14 ` Vladislav Shpilevoy
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cover.1583689251.git.v.shpilevoy@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=imun@tarantool.org \ --cc=korablev@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 0/3] box_return_mp' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox