diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-01-11 20:37:13 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-01-11 20:37:13 (GMT) |
commit | d035636d833c393f86eb4eacb5c5934c94eb1a06 (patch) | |
tree | 3b4c7e7933878d0a0f47e11bbd2edf075801969c /options.h | |
parent | 16797549c7788b05583f241e5c788a666debf6d0 (diff) |
added luaclient
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |