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/ClientInternal.hxx | |
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 '')
-rw-r--r-- | src/ClientInternal.hxx | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index 4252b5349..ac50a3e99 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -39,7 +39,8 @@ struct deferred_buffer { char data[sizeof(long)]; }; -struct client { +class Client { +public: struct player_control *player_control; GIOChannel *channel; @@ -112,23 +113,23 @@ client_list_is_empty(void); bool client_list_is_full(void); -struct client * +Client * client_list_get_first(void); void -client_list_add(struct client *client); +client_list_add(Client *client); void client_list_foreach(GFunc func, gpointer user_data); void -client_list_remove(struct client *client); +client_list_remove(Client *client); void -client_close(struct client *client); +client_close(Client *client); static inline void -new_cmd_list_ptr(struct client *client, const char *s) +new_cmd_list_ptr(Client *client, const char *s) { client->cmd_list = g_slist_prepend(client->cmd_list, g_strdup(s)); } @@ -143,7 +144,7 @@ free_cmd_list(GSList *list) } void -client_set_expired(struct client *client); +client_set_expired(Client *client); /** * Schedule an "expired" check for all clients: permanently delete @@ -159,16 +160,16 @@ void client_deinit_expire(void); enum command_return -client_read(struct client *client); +client_read(Client *client); enum command_return -client_process_line(struct client *client, char *line); +client_process_line(Client *client, char *line); void -client_write_deferred(struct client *client); +client_write_deferred(Client *client); void -client_write_output(struct client *client); +client_write_output(Client *client); gboolean client_in_event(GIOChannel *source, GIOCondition condition, |