summaryrefslogtreecommitdiff
path: root/control_commands.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-08-21 01:09:12 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-08-21 01:09:12 +0200
commit0ef865bb301954df86b87cd1978ca711c01e71d5 (patch)
tree56b63932d56927b3937e95e70fe4f1d57363bcad /control_commands.c
parentf156f9a4f120a055b023ce8e60fac3012e0c185f (diff)
Added the basics for local control commands.
Diffstat (limited to 'control_commands.c')
-rw-r--r--control_commands.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/control_commands.c b/control_commands.c
new file mode 100644
index 0000000..1ee261c
--- /dev/null
+++ b/control_commands.c
@@ -0,0 +1,14 @@
+#include "control_commands.h"
+
+#include <glib.h>
+#include <string.h>
+
+void control_commands_handle(const gchar *cmd) {
+ gchar *args = strchr(cmd, ' ');
+ if(args != NULL) {
+ *args = '\0';
+ args++;
+ }
+
+ g_debug("handling command %s with arguments %s", cmd, args);
+}