summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)