From 2ff1905501d19199ddbb7d035f36ca7a41705a6a Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Sun, 18 Nov 2012 16:22:49 +0100 Subject: Separated public "deep" API declarations in a dedicated header. --- src/deep.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/deep.h (limited to 'src/deep.h') diff --git a/src/deep.h b/src/deep.h new file mode 100644 index 0000000..39f501c --- /dev/null +++ b/src/deep.h @@ -0,0 +1,17 @@ +#ifndef __LANES_DEEP_H__ +#define __LANES_DEEP_H__ 1 + +/* + * public 'deep' API to be used by external modules if they want to implement Lanes-aware userdata + * said modules will have to link against lanes (it is not really possible to separate the 'deep userdata' implementation from the rest of Lanes) + */ + + +#include "lua.h" + +typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); + +int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); +void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index); + +#endif // __LANES_DEEP_H__ \ No newline at end of file -- cgit v1.2.3-55-g6feb