aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.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 /reader.h
parent90e979d0d9a94601fc9a0c1e5ad785ede1e92381 (diff)
Some work to allow completions to be evaluated off of the main thread
Diffstat (limited to 'reader.h')
-rw-r--r--reader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/reader.h b/reader.h
index 9cb412e8..4acb9598 100644
--- a/reader.h
+++ b/reader.h
@@ -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.