summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-09-16 17:06:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-09-16 17:06:50 (GMT)
commitc5ecd44e7073027eb8ce6ec0ec5ff8456be77552 (patch)
treecc1c0040d5d60523e849bcbac4e1c0d67b35ed91
parentb2d6dd99684a3260d4b719c28819d4c61da0f8ba (diff)
updated help output
-rw-r--r--switchctl.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/switchctl.c b/switchctl.c
index 8928a12..f193450 100644
--- a/switchctl.c
+++ b/switchctl.c
@@ -84,17 +84,19 @@ int send_response(int fd, const char* response)
void send_usage(int fd)
{
if(fd < 0)
- return 0;
+ return;
send_response(fd, "Usage: ");
send_response(fd, " help prints this");
+ send_response(fd, " type set client type, one of: master, standby, heartbeat");
+ send_response(fd, " channel switch to channel main or music");
+ send_response(fd, " client type master and standby only");
+ send_response(fd, " mode switch to mode master or standby");
+ send_response(fd, " status get actual status from switch");
+ send_response(fd, " listen register for events, no parameter for all");
+ send_response(fd, " one of: request, mode, status, gpi, oc, relay, silence, none");
+ send_response(fd, " log add line to daemons log file");
send_response(fd, " switch send raw commands to the switch");
- send_response(fd, " channel tba...");
- send_response(fd, " type tba...");
- send_response(fd, " mode tba...");
- send_response(fd, " status tba...");
- send_response(fd, " log tba...");
- send_response(fd, " listen tba...");
}
int process_cmd_request(const char* cmd, cmd_id_t cmd_id, const char* param, int fd, cmd_t **cmd_q, client_t* client_lst, options_t* opt)