summaryrefslogtreecommitdiff
path: root/lib/command_match.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_match.h')
-rw-r--r--lib/command_match.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/command_match.h b/lib/command_match.h
index 6804a0777a..e8a408495e 100644
--- a/lib/command_match.h
+++ b/lib/command_match.h
@@ -85,7 +85,7 @@ match_command (struct graph_node *start,
*
* @param[in] start the start node of the DFA to match against
* @param[in] vline vectorized input string
- * @param[in] completions pointer to possible completions
+ * @param[in] completions pointer to list of possible next nodes
* @return matcher status
*/
enum matcher_rv
@@ -93,4 +93,18 @@ match_command_complete (struct graph_node *start,
vector vline,
struct list **completions);
+
+/**
+ * Compiles possible completions for a given line of user input.
+ *
+ * @param[in] start the start node of the DFA to match against
+ * @param[in] vline vectorized input string
+ * @param[in] completions vector to fill with string completions
+ * @return matcher status
+ */
+enum matcher_rv
+match_command_complete_str (struct graph_node *start,
+ vector vline,
+ vector completions);
+
#endif /* _ZEBRA_COMMAND_MATCH_H */