summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-01-11 20:37:13 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-01-11 20:37:13 (GMT)
commitd035636d833c393f86eb4eacb5c5934c94eb1a06 (patch)
tree3b4c7e7933878d0a0f47e11bbd2edf075801969c /options.h
parent16797549c7788b05583f241e5c788a666debf6d0 (diff)
added luaclient
Diffstat (limited to 'options.h')
-rw-r--r--options.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/options.h b/options.h
index e2a98fb..64ce12b 100644
--- a/options.h
+++ b/options.h
@@ -22,6 +22,8 @@
#ifndef RHCTL_options_h_INCLUDED
#define RHCTL_options_h_INCLUDED
+#include <lua.h>
+
#include "string_list.h"
#include "key_value_storage.h"
#include <termios.h>
@@ -61,6 +63,9 @@ struct options_struct {
/* heartbeatclient only */
u_int32_t timeout_;
char* led_filename_;
+
+/* luaclient only */
+ char* lua_file_;
};
typedef struct options_struct options_t;
@@ -69,6 +74,11 @@ int options_parse_hex_string(const char* hex, buffer_t* buffer);
int options_parse(options_t* opt, int argc, char* argv[]);
int options_parse_post(options_t* opt);
void options_default(options_t* opt);
+void options_lua_push_string(lua_State* L, const int tidx, const char* key, const char* value);
+void options_lua_push_int(lua_State* L, const int tidx, const char* key, const u_int32_t value);
+void options_lua_push_boolean(lua_State* L, const int tidx, const char* key, const u_int32_t value);
+void options_lua_push_string_list(lua_State* L, const int tidx, string_list_t* lst);
+void options_lua_push(options_t* opt, lua_State* L);
void options_clear(options_t* opt);
void options_print_usage();
void options_print(options_t* opt);