]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - interactive.c
New audiod command: ll to change the log level at runtime.
[paraslash.git] / interactive.c
index 8c4545b476e8f792ea7bba6f88b4e83fb952e540..209c5a36f70b194308a21d132c14541a46d51025 100644 (file)
@@ -805,3 +805,21 @@ create_matches:
        free(ci.word);
        return ret;
 }
+
+/**
+ * Complete on severity strings.
+ *
+ * \param ci See struct \ref i9e_completer.
+ * \param cr See struct \ref i9e_completer.
+ */
+void i9e_ll_completer(struct i9e_completion_info *ci,
+               struct i9e_completion_result *cr)
+{
+       char *sev[] = {SEVERITIES, NULL};
+
+       if (ci->word_num != 1) {
+               cr->matches = NULL;
+               return;
+       }
+       i9e_extract_completions(ci->word, sev, &cr->matches);
+}