X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=fe7165edd966d1afeaf46c15c252fa70c229e2c6;hp=0edab366efe6ef6fa50f99c22b9ffa3492494640;hb=ba3cef172b3f905315c0279d0a664df4d1db149c;hpb=9d75ded33ce6664156acb07e311f51d55970bbea diff --git a/audioc.c b/audioc.c index 0edab366..fe7165ed 100644 --- a/audioc.c +++ b/audioc.c @@ -1,13 +1,18 @@ /* - * Copyright (C) 2005-2013 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file audioc.c The client program used to connect to para_audiod. */ +#include +#include #include #include +#include +#include +#include #include #include @@ -92,6 +97,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) {