diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-24 12:13:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-24 12:19:31 -0800 |
commit | a515db4aea51a032b06eb463fcc5a5b70066a18c (patch) | |
tree | 68774c3b9afbdadfbdde6ecdf8934b3099cdb331 /complete.h | |
parent | 90e979d0d9a94601fc9a0c1e5ad785ede1e92381 (diff) |
Some work to allow completions to be evaluated off of the main thread
Diffstat (limited to 'complete.h')
-rw-r--r-- | complete.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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. |