summaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-13 18:21:17 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-13 18:21:17 +0200
commite628a01fffba231a1f0f729bdb509abcba6e6f0b (patch)
tree56e71649d6036116ea3d78a28af4f6876625ec72 /src/options.c
parent7cac6770e0b380d6e5f37b9fad71c9f7f15952ba (diff)
downloadfastd-e628a01fffba231a1f0f729bdb509abcba6e6f0b.tar
fastd-e628a01fffba231a1f0f729bdb509abcba6e6f0b.zip
Add on-connect hook
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index a4c334f..0fb3baa 100644
--- a/src/options.c
+++ b/src/options.c
@@ -285,6 +285,10 @@ static void option_on_post_down(fastd_context_t *ctx UNUSED, fastd_config_t *con
fastd_shell_command_set(&conf->on_post_down, arg, true);
}
+static void option_on_connect(fastd_context_t *ctx UNUSED, fastd_config_t *conf, const char *arg) {
+ fastd_shell_command_set(&conf->on_connect, arg, false);
+}
+
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, false);
}