summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 1a56b56..bf9a528 100644
--- a/src/common.h
+++ b/src/common.h
@@ -80,11 +80,12 @@ typedef enum {
HONEY_INT,
HONEY_NUM,
HONEY_STRING,
- HONEY_FUNC
+ HONEY_FUNC,
+ HONEY_TABLE,
} honey_lua_type;
/** @brief Wrap C objects for lua. */
-typedef struct {
+typedef struct honey_lua_element {
char* name;
honey_lua_type type;
union {
@@ -92,6 +93,10 @@ typedef struct {
double number;
char* string;
int (*function)(lua_State*);
+ struct {
+ int n_elements;
+ struct honey_lua_element* elements;
+ } table;
} data;
} honey_lua_element;