aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-24 12:13:35 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-24 12:19:31 -0800
commita515db4aea51a032b06eb463fcc5a5b70066a18c (patch)
tree68774c3b9afbdadfbdde6ecdf8934b3099cdb331 /complete.h
parent90e979d0d9a94601fc9a0c1e5ad785ede1e92381 (diff)
Some work to allow completions to be evaluated off of the main thread
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/complete.h b/complete.h
index 1abc9449..f7964e2a 100644
--- a/complete.h
+++ b/complete.h
@@ -148,6 +148,10 @@ public:
bool operator != (const completion_t& rhs) const { return ! (*this == rhs); }
};
+enum complete_type_t {
+ COMPLETE_DEFAULT,
+ COMPLETE_AUTOSUGGEST
+};
/**
@@ -218,10 +222,9 @@ void complete_remove( const wchar_t *cmd,
wchar_t short_opt,
const wchar_t *long_opt );
-/**
- Find all completions of the command cmd, insert them into out.
-*/
-void complete( const wchar_t* cmd, std::vector<completion_t> &out);
+
+/** Find all completions of the command cmd, insert them into out. */
+void complete( const wchar_t* cmd, std::vector<completion_t> &out, complete_type_t type);
/**
Print a list of all current completions into the string_buffer_t.