diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-05 22:43:11 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-05 22:43:11 +0200 |
commit | 2561266c156a1f63ed85fe2865ac607507ae4cef (patch) | |
tree | 9fbc7cf5fb9a045e7bbf70ab07f9b5b4e518a782 /src/options.c | |
parent | 5f898aa52f81671cbc54beea19211c8a75e0962f (diff) | |
download | fastd-2561266c156a1f63ed85fe2865ac607507ae4cef.tar fastd-2561266c156a1f63ed85fe2865ac607507ae4cef.zip |
Add status socket to get the current status as JSON
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 0af48f4..2a67f13 100644 --- a/src/options.c +++ b/src/options.c @@ -106,6 +106,16 @@ static void option_pid_file(const char *arg) { } +#ifdef WITH_STATUS_SOCKET + +/** Handles the --status-socket option */ +static void option_status_socket(const char *arg) { + free(conf.status_socket); + conf.status_socket = fastd_strdup(arg); +} + +#endif + /** Handles the --config option */ static void option_config(const char *arg) { if (!strcmp(arg, "-")) |