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/ClientSubscribe.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 '')
-rw-r--r-- | src/ClientSubscribe.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ClientSubscribe.cxx b/src/ClientSubscribe.cxx index 38440be7b..31987c6a0 100644 --- a/src/ClientSubscribe.cxx +++ b/src/ClientSubscribe.cxx @@ -29,7 +29,7 @@ extern "C" { G_GNUC_PURE static GSList * -client_find_subscription(const struct client *client, const char *channel) +client_find_subscription(const Client *client, const char *channel) { for (GSList *i = client->subscriptions; i != NULL; i = g_slist_next(i)) if (strcmp((const char *)i->data, channel) == 0) @@ -39,7 +39,7 @@ client_find_subscription(const struct client *client, const char *channel) } enum client_subscribe_result -client_subscribe(struct client *client, const char *channel) +client_subscribe(Client *client, const char *channel) { assert(client != NULL); assert(channel != NULL); @@ -63,7 +63,7 @@ client_subscribe(struct client *client, const char *channel) } bool -client_unsubscribe(struct client *client, const char *channel) +client_unsubscribe(Client *client, const char *channel) { GSList *i = client_find_subscription(client, channel); if (i == NULL) @@ -83,7 +83,7 @@ client_unsubscribe(struct client *client, const char *channel) } void -client_unsubscribe_all(struct client *client) +client_unsubscribe_all(Client *client) { for (GSList *i = client->subscriptions; i != NULL; i = g_slist_next(i)) g_free(i->data); @@ -94,7 +94,7 @@ client_unsubscribe_all(struct client *client) } bool -client_push_message(struct client *client, const struct client_message *msg) +client_push_message(Client *client, const struct client_message *msg) { assert(client != NULL); assert(msg != NULL); @@ -115,7 +115,7 @@ client_push_message(struct client *client, const struct client_message *msg) } GSList * -client_read_messages(struct client *client) +client_read_messages(Client *client) { GSList *messages = g_slist_reverse(client->messages); |