Skip to content
Snippets Groups Projects
Commit efe97b7b authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Define public module API for Tarantool Lua/C modules

This patch adds `src/module.h` header file with definition of all public
API functions suitable to use in Lua/C modules for Tarantool. This header
is automatically generated from src/*.h by CMake (`make generate_module_api`)
by extracting code blocks between /** \cond public */ /* \endcond public */
Doxygen-style comments.

Definitions of functions in module.h are frozen and must not be changed by
future commits/releases. A new test case `app/module_api` is added to check
compilation, linkage and loading of Lua modules and functionality of
provided API functions.

Other changes:

 * Convert mysql and pg to use module.h and prepare to convert to .c
 * Fix includes in say.h, coeio.h
 * Rename luaL_pushnumber64 to luaL_pushuint64 and
          luaL_pushinumber64 to luaL_pushint64
 * Add LUA_API macros to public luaL_* functions (actually adds extern "C")
parent 8c0778bf
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment