aboutsummaryrefslogtreecommitdiffstats
path: root/src/AllCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 17:27:26 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 17:36:28 +0100
commit7a982169c9dc3a673e922e7f3b9b73368cef0aae (patch)
tree7b9b28287d7ae934c0e75bd7f3b5f317ad7d2cac /src/AllCommands.cxx
parentf2510d60fad1c5811fba3d253ef1c8dabb712304 (diff)
downloadmpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.tar.gz
mpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.tar.xz
mpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.zip
Client: rename the struct client to class Client
Diffstat (limited to '')
-rw-r--r--src/AllCommands.cxx16
1 files changed, 8 insertions, 8 deletions
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;