X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=audioc.c;h=8c6b7ec8f1b7df61b790bc55d09cd0755bbf141a;hb=1f7a50b57bf59a85dafaed5e7b48bb0ec2efcc5c;hp=e50267fdfba290bf7ba39050afd5a388ced41ff0;hpb=879e52d49df6d00aa9eafe5cccb48bbd24ed4c81;p=paraslash.git diff --git a/audioc.c b/audioc.c index e50267fd..8c6b7ec8 100644 --- a/audioc.c +++ b/audioc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2014 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -13,7 +13,6 @@ #include #include #include -#include #include #include "audioc.cmdline.h" @@ -72,7 +71,7 @@ fail: #include "sched.h" #include "buffer_tree.h" #include "interactive.h" -#include "audiod_completion.h" +#include "audiod.completion.h" static struct sched sched; @@ -97,6 +96,15 @@ static void help_completer(struct i9e_completion_info *ci, result->matches = i9e_complete_commands(ci->word, audiod_completers); } +static void version_completer(struct i9e_completion_info *ci, + struct i9e_completion_result *cr) +{ + char *opts[] = {"-v", NULL}; + + if (ci->word_num <= 2 && ci->word && ci->word[0] == '-') + i9e_complete_option(opts, ci, cr); +} + static void stat_completer(struct i9e_completion_info *ci, struct i9e_completion_result *cr) {