summaryrefslogtreecommitdiff
path: root/src/honeysuckle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/honeysuckle.h')
-rw-r--r--src/honeysuckle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/honeysuckle.h b/src/honeysuckle.h
index 43e5f51..1890c40 100644
--- a/src/honeysuckle.h
+++ b/src/honeysuckle.h
@@ -1,6 +1,8 @@
#ifndef HONEYSUCKLE_H
#define HONEYSUCKLE_H
+#include <stdbool.h>
+
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
@@ -29,6 +31,11 @@ int hs_create_table(lua_State *L, ...);
int hs_create_enum(lua_State *L, ...);
void hs_process_table(lua_State *L, int table_index, void *data, ...);
+// default processors
+void hs_pt_set_boolean(bool value, void *data);
+void hs_pt_set_integer(lua_Integer value, void *data);
+void hs_pt_set_number(lua_Number value, void *data);
+void hs_pt_set_string(const char *value, void *data);
void hs_throw_error(lua_State *L, const char *format_string, ...);
int hs_traceback(lua_State *L);