summaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-11 18:56:47 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-11 18:56:47 +0200
commit7cac6770e0b380d6e5f37b9fad71c9f7f15952ba (patch)
tree8d2c695f27361aa8b3b6d91038f4c78182f64a16 /src/options.c
parenta45a313422efa33f261cb1b53a08646a6b3ab947 (diff)
downloadfastd-7cac6770e0b380d6e5f37b9fad71c9f7f15952ba.tar
fastd-7cac6770e0b380d6e5f37b9fad71c9f7f15952ba.zip
Add support for async commands
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/options.c b/src/options.c
index 03f50ae..a4c334f 100644
--- a/src/options.c
+++ b/src/options.c
@@ -270,31 +270,31 @@ static void option_forward(fastd_context_t *ctx UNUSED, fastd_config_t *conf) {
#ifdef WITH_CMDLINE_COMMANDS
static void option_on_pre_up(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_pre_up, arg);
+ fastd_shell_command_set(&conf->on_pre_up, arg, true);
}
static void option_on_up(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_up, arg);
+ fastd_shell_command_set(&conf->on_up, arg, true);
}
static void option_on_down(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_down, arg);
+ fastd_shell_command_set(&conf->on_down, arg, true);
}
static void option_on_post_down(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_post_down, arg);
+ fastd_shell_command_set(&conf->on_post_down, arg, true);
}
static void option_on_establish(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_establish, arg);
+ fastd_shell_command_set(&conf->on_establish, arg, false);
}
static void option_on_disestablish(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_disestablish, arg);
+ fastd_shell_command_set(&conf->on_disestablish, arg, false);
}
static void option_on_verify(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
- fastd_shell_command_set(&conf->on_verify, arg);
+ fastd_shell_command_set(&conf->on_verify, arg, false);
}
#endif