Renamed client_callback() to wmud_client_callback()
Renamed client_callback() to follow naming conventions. Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
parent
42e0254457
commit
f44b1ac6d8
@ -38,8 +38,8 @@ wmud_client_close(wmudClient *client, gboolean send_goodbye)
|
|||||||
g_free(client);
|
g_free(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
static gboolean
|
||||||
client_callback(GSocket *client, GIOCondition condition, wmudClient *client_data)
|
wmud_client_callback(GSocket *client, GIOCondition condition, wmudClient *client_data)
|
||||||
{
|
{
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ game_source_callback(GSocket *socket, GIOCondition condition, struct AcceptData
|
|||||||
clients = g_slist_prepend(clients, client_data);
|
clients = g_slist_prepend(clients, client_data);
|
||||||
|
|
||||||
client_source = g_socket_create_source(client_socket, G_IO_IN | G_IO_OUT | G_IO_PRI | G_IO_ERR | G_IO_HUP | G_IO_NVAL, NULL);
|
client_source = g_socket_create_source(client_socket, G_IO_IN | G_IO_OUT | G_IO_PRI | G_IO_ERR | G_IO_HUP | G_IO_NVAL, NULL);
|
||||||
g_source_set_callback(client_source, (GSourceFunc)client_callback, client_data, NULL);
|
g_source_set_callback(client_source, (GSourceFunc)wmud_client_callback, client_data, NULL);
|
||||||
g_source_attach(client_source, accept_data->context);
|
g_source_attach(client_source, accept_data->context);
|
||||||
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "New connection.");
|
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "New connection.");
|
||||||
wmud_client_send(client_data, "By what name shall we call you? ");
|
wmud_client_send(client_data, "By what name shall we call you? ");
|
||||||
|
Loading…
Reference in New Issue
Block a user