diff options
Diffstat (limited to 'control_commands.c')
-rw-r--r-- | control_commands.c | 14 |
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); +} |