diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-10 12:23:24 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-10 12:54:57 +0100 |
commit | 58d03aeb6fe3519ef12a4cedcc3e47b8daaad9cc (patch) | |
tree | 6df979cefa33ce6dbf0eb80117b7b52140eb8b94 /frontends/monkey | |
parent | f357af4250c706c7f9dfaa36198cf918a58446ff (diff) | |
download | netsurf-58d03aeb6fe3519ef12a4cedcc3e47b8daaad9cc.tar.gz netsurf-58d03aeb6fe3519ef12a4cedcc3e47b8daaad9cc.tar.bz2 |
Add ability to set options in monkey
Diffstat (limited to 'frontends/monkey')
-rw-r--r-- | frontends/monkey/main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c index be3460dac..1bea02471 100644 --- a/frontends/monkey/main.c +++ b/frontends/monkey/main.c @@ -208,6 +208,11 @@ static void quit_handler(int argc, char **argv) monkey_done = true; } +static void monkey_options_handle_command(int argc, char **argv) +{ + nsoption_commandline(&argc, argv, nsoptions); +} + /** * Set option defaults for monkey frontend * @@ -379,7 +384,12 @@ main(int argc, char **argv) ret = monkey_register_handler("WINDOW", monkey_window_handle_command); if (ret != NSERROR_OK) { - die("window handler fialed to register"); + die("window handler failed to register"); + } + + ret = monkey_register_handler("OPTIONS", monkey_options_handle_command); + if (ret != NSERROR_OK) { + die("options handler failed to register"); } fprintf(stdout, "GENERIC STARTED\n"); |