summaryrefslogtreecommitdiff
path: root/lib/command_match.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-07-21 21:38:03 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-07-21 21:38:03 +0000
commit18be0e599d1ba666e59a3d027e973eb41798f46f (patch)
tree2d813d4a693a8af73e405aaec147e225c72b61ec /lib/command_match.h
parent9d0662e009c0cf4532b88c9a1fb0f7c0dc174584 (diff)
lib: Mostly complete matcher
Input matching and completions works. Still some rough edges. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.h')
-rw-r--r--lib/command_match.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/command_match.h b/lib/command_match.h
index cddeb08af7..4fc0995940 100644
--- a/lib/command_match.h
+++ b/lib/command_match.h
@@ -2,6 +2,7 @@
#define COMMAND_MATCH_H
#include "command_graph.h"
+#include "linklist.h"
/**
* Filter types. These tell the parser whether to allow
@@ -27,11 +28,11 @@ enum matcher_rv
};
/* Completion match types. */
-enum match_type
+enum match_type
{
no_match,
partly_match,
- exact_match
+ exact_match
};
/**
* Defines which matcher_rv values constitute
@@ -63,7 +64,7 @@ cmd_range_match (struct graph_node *, const char *str);
enum match_type
cmd_word_match (struct graph_node *, enum filter_type, const char *);
-enum match_type
+struct list**
match_command (struct graph_node *, enum filter_type, const char *);
#endif