From 2561266c156a1f63ed85fe2865ac607507ae4cef Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 5 Sep 2014 22:43:11 +0200 Subject: Add status socket to get the current status as JSON --- src/options.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/options.c') 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, "-")) -- cgit v1.2.3