diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 17:27:26 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 17:36:28 +0100 |
commit | 7a982169c9dc3a673e922e7f3b9b73368cef0aae (patch) | |
tree | 7b9b28287d7ae934c0e75bd7f3b5f317ad7d2cac /src/QueueCommands.cxx | |
parent | f2510d60fad1c5811fba3d253ef1c8dabb712304 (diff) | |
download | mpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.tar.gz mpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.tar.xz mpd-7a982169c9dc3a673e922e7f3b9b73368cef0aae.zip |
Client: rename the struct client to class Client
Diffstat (limited to 'src/QueueCommands.cxx')
-rw-r--r-- | src/QueueCommands.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/QueueCommands.cxx b/src/QueueCommands.cxx index dc73132e5..8a13075a5 100644 --- a/src/QueueCommands.cxx +++ b/src/QueueCommands.cxx @@ -37,7 +37,7 @@ extern "C" { #include <string.h> enum command_return -handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_add(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { char *uri = argv[1]; enum playlist_result result; @@ -76,7 +76,7 @@ handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_addid(struct client *client, int argc, char *argv[]) +handle_addid(Client *client, int argc, char *argv[]) { char *uri = argv[1]; unsigned added_id; @@ -128,7 +128,7 @@ handle_addid(struct client *client, int argc, char *argv[]) } enum command_return -handle_delete(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_delete(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned start, end; enum playlist_result result; @@ -142,7 +142,7 @@ handle_delete(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_deleteid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_deleteid(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned id; enum playlist_result result; @@ -155,7 +155,7 @@ handle_deleteid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_playlist(struct client *client, +handle_playlist(Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { playlist_print_uris(client, &g_playlist); @@ -163,7 +163,7 @@ handle_playlist(struct client *client, } enum command_return -handle_shuffle(G_GNUC_UNUSED struct client *client, +handle_shuffle(G_GNUC_UNUSED Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { unsigned start = 0, end = queue_length(&g_playlist.queue); @@ -175,7 +175,7 @@ handle_shuffle(G_GNUC_UNUSED struct client *client, } enum command_return -handle_clear(G_GNUC_UNUSED struct client *client, +handle_clear(G_GNUC_UNUSED Client *client, G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) { playlist_clear(&g_playlist, client->player_control); @@ -183,7 +183,7 @@ handle_clear(G_GNUC_UNUSED struct client *client, } enum command_return -handle_plchanges(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_plchanges(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { uint32_t version; @@ -195,7 +195,7 @@ handle_plchanges(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_plchangesposid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_plchangesposid(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { uint32_t version; @@ -207,7 +207,7 @@ handle_plchangesposid(struct client *client, G_GNUC_UNUSED int argc, char *argv[ } enum command_return -handle_playlistinfo(struct client *client, int argc, char *argv[]) +handle_playlistinfo(Client *client, int argc, char *argv[]) { unsigned start = 0, end = G_MAXUINT; bool ret; @@ -224,7 +224,7 @@ handle_playlistinfo(struct client *client, int argc, char *argv[]) } enum command_return -handle_playlistid(struct client *client, int argc, char *argv[]) +handle_playlistid(Client *client, int argc, char *argv[]) { if (argc >= 2) { unsigned id; @@ -243,7 +243,7 @@ handle_playlistid(struct client *client, int argc, char *argv[]) } static enum command_return -handle_playlist_match(struct client *client, int argc, char *argv[], +handle_playlist_match(Client *client, int argc, char *argv[], bool fold_case) { SongFilter filter; @@ -257,19 +257,19 @@ handle_playlist_match(struct client *client, int argc, char *argv[], } enum command_return -handle_playlistfind(struct client *client, int argc, char *argv[]) +handle_playlistfind(Client *client, int argc, char *argv[]) { return handle_playlist_match(client, argc, argv, false); } enum command_return -handle_playlistsearch(struct client *client, int argc, char *argv[]) +handle_playlistsearch(Client *client, int argc, char *argv[]) { return handle_playlist_match(client, argc, argv, true); } enum command_return -handle_prio(struct client *client, int argc, char *argv[]) +handle_prio(Client *client, int argc, char *argv[]) { unsigned priority; @@ -301,7 +301,7 @@ handle_prio(struct client *client, int argc, char *argv[]) } enum command_return -handle_prioid(struct client *client, int argc, char *argv[]) +handle_prioid(Client *client, int argc, char *argv[]) { unsigned priority; @@ -331,7 +331,7 @@ handle_prioid(struct client *client, int argc, char *argv[]) } enum command_return -handle_move(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_move(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned start, end; int to; @@ -347,7 +347,7 @@ handle_move(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_moveid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_moveid(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned id; int to; @@ -363,7 +363,7 @@ handle_moveid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_swap(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_swap(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned song1, song2; enum playlist_result result; @@ -378,7 +378,7 @@ handle_swap(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) } enum command_return -handle_swapid(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) +handle_swapid(Client *client, G_GNUC_UNUSED int argc, char *argv[]) { unsigned id1, id2; enum playlist_result result; |