mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
cli protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@28 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6eddcc2f85
commit
81447ed392
7 changed files with 94 additions and 8 deletions
|
|
@ -111,7 +111,7 @@ static void line_callback(struct ioline *line, const char *s, void *userdata) {
|
|||
l = strcspn(s, delimiter);
|
||||
|
||||
for (command = commands; command->name; command++)
|
||||
if (!strncmp(s, command->name, l)) {
|
||||
if (strlen(command->name) == l && !strncmp(s, command->name, l)) {
|
||||
struct tokenizer *t = tokenizer_new(s, command->args);
|
||||
assert(t);
|
||||
command->proc(c, t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue