diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-21 12:27:46 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-21 12:27:46 +0200 |
commit | d57e4b1dd22b7243ff3ee44036ff17af966a200b (patch) | |
tree | 4c7244bfce0b2295d557950fdc10c9f3a070024b | |
parent | f6da5c86c8e02cf3553d31a3b8f9898722a2cd37 (diff) |
Added connection argument to control_commands_handle().
-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; } |