projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_lua.[ch]: Implement functions to export C types to Lua.
[collectd.git]
/
src
/
utils_lua.h
diff --git
a/src/utils_lua.h
b/src/utils_lua.h
index
bb97d85
..
366dd0f
100644
(file)
--- a/
src/utils_lua.h
+++ b/
src/utils_lua.h
@@
-35,5
+35,12
@@
int luaC_tostringbuffer (lua_State *l, int idx, char *buffer, size_t b
value_t luaC_tovalue (lua_State *l, int idx, int ds_type);
value_list_t *luaC_tovaluelist (lua_State *l, int idx);
value_t luaC_tovalue (lua_State *l, int idx, int ds_type);
value_list_t *luaC_tovaluelist (lua_State *l, int idx);
+/*
+ * push functions (C -> stack)
+ */
+int luaC_pushcdtime (lua_State *l, cdtime_t t);
+int luaC_pushvalue (lua_State *l, value_t v, int ds_type);
+int luaC_pushvaluelist (lua_State *l, const data_set_t *ds, const value_list_t *vl);
+
#endif /* UTILS_LUA_H */
/* vim: set sw=2 sts=2 et fdm=marker : */
#endif /* UTILS_LUA_H */
/* vim: set sw=2 sts=2 et fdm=marker : */