diff options
-rw-r--r-- | control_commands.c | 2 | ||||
-rw-r--r-- | control_commands.h | 3 | ||||
-rw-r--r-- | control_service.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/control_commands.c b/control_commands.c index 1ee261c..f5fbc64 100644 --- a/control_commands.c +++ b/control_commands.c @@ -3,7 +3,7 @@ #include <glib.h> #include <string.h> -void control_commands_handle(const gchar *cmd) { +void control_commands_handle(GSocketConnection *connection, const gchar *cmd) { gchar *args = strchr(cmd, ' '); if(args != NULL) { *args = '\0'; diff --git a/control_commands.h b/control_commands.h index 03d557b..28fba6d 100644 --- a/control_commands.h +++ b/control_commands.h @@ -2,7 +2,8 @@ #define CONTROL_COMMANDS_H #include <glib.h> +#include <gio/gio.h> -void control_commands_handle(const gchar *cmd); +void control_commands_handle(GSocketConnection *connection, const gchar *cmd); #endif diff --git a/control_service.c b/control_service.c index f3f1c5c..9a63dfd 100644 --- a/control_service.c +++ b/control_service.c @@ -29,7 +29,7 @@ static gboolean service_incoming(GSocketService *service, } *pos = '\0'; - control_commands_handle(buffer); + control_commands_handle(connection, buffer); return FALSE; } |