Client: rename the struct client to class Client

This commit is contained in:
Max Kellermann
2013-01-03 17:27:26 +01:00
parent f2510d60fa
commit 7a982169c9
63 changed files with 401 additions and 379 deletions

View File

@@ -50,7 +50,7 @@ client_new(struct player_control *player_control,
int fd, const struct sockaddr *sa, size_t sa_length, int uid)
{
static unsigned int next_client_num;
struct client *client;
Client *client;
char *remote;
assert(player_control != NULL);
@@ -87,7 +87,7 @@ client_new(struct player_control *player_control,
return;
}
client = g_new0(struct client, 1);
client = g_new0(Client, 1);
client->player_control = player_control;
client->channel = g_io_channel_new_socket(fd);
@@ -143,7 +143,7 @@ deferred_buffer_free(gpointer data, G_GNUC_UNUSED gpointer user_data)
}
void
client_close(struct client *client)
client_close(Client *client)
{
client_list_remove(client);