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 /reader.h | |
parent | 90e979d0d9a94601fc9a0c1e5ad785ede1e92381 (diff) |
Some work to allow completions to be evaluated off of the main thread
Diffstat (limited to 'reader.h')
-rw-r--r-- | reader.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,6 +15,7 @@ #include "util.h" #include "io.h" #include "common.h" +#include "complete.h" class parser_t; class completion_t; @@ -132,7 +133,8 @@ void reader_pop(); - The command to be completed as a null terminated array of wchar_t - An array_list_t in which completions will be inserted. */ -void reader_set_complete_function( void (*f)( const wchar_t *, std::vector<completion_t> & ) ); +typedef void (*complete_function_t)( const wchar_t *, std::vector<completion_t> &, complete_type_t ); +void reader_set_complete_function( complete_function_t ); /** The type of a highlight function. |