From 7a982169c9dc3a673e922e7f3b9b73368cef0aae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 Jan 2013 17:27:26 +0100 Subject: Client: rename the struct client to class Client --- src/AllCommands.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/AllCommands.cxx') diff --git a/src/AllCommands.cxx b/src/AllCommands.cxx index d7ea8d60c..58dcf4dba 100644 --- a/src/AllCommands.cxx +++ b/src/AllCommands.cxx @@ -58,16 +58,16 @@ struct command { unsigned permission; int min; int max; - enum command_return (*handler)(struct client *client, int argc, char **argv); + enum command_return (*handler)(Client *client, int argc, char **argv); }; /* don't be fooled, this is the command handler for "commands" command */ static enum command_return -handle_commands(struct client *client, +handle_commands(Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]); static enum command_return -handle_not_commands(struct client *client, +handle_not_commands(Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]); /** @@ -182,7 +182,7 @@ command_available(G_GNUC_UNUSED const struct command *cmd) /* don't be fooled, this is the command handler for "commands" command */ static enum command_return -handle_commands(struct client *client, +handle_commands(Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { const unsigned permission = client_get_permission(client); @@ -200,7 +200,7 @@ handle_commands(struct client *client, } static enum command_return -handle_not_commands(struct client *client, +handle_not_commands(Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { const unsigned permission = client_get_permission(client); @@ -252,7 +252,7 @@ command_lookup(const char *name) } static bool -command_check_request(const struct command *cmd, struct client *client, +command_check_request(const struct command *cmd, Client *client, unsigned permission, int argc, char *argv[]) { int min = cmd->min + 1; @@ -290,7 +290,7 @@ command_check_request(const struct command *cmd, struct client *client, } static const struct command * -command_checked_lookup(struct client *client, unsigned permission, +command_checked_lookup(Client *client, unsigned permission, int argc, char *argv[]) { const struct command *cmd; @@ -317,7 +317,7 @@ command_checked_lookup(struct client *client, unsigned permission, } enum command_return -command_process(struct client *client, unsigned num, char *line) +command_process(Client *client, unsigned num, char *line) { GError *error = NULL; int argc; -- cgit v1.2.3