diff options
author | James Booth <boothj5@gmail.com> | 2016-10-10 22:28:23 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-10-10 22:28:23 +0100 |
commit | dcc2123ec4d2210c8631b181cae9d817504e8b48 (patch) | |
tree | a8bb9c746aa6b2739e0ef6af9ce01f9966bff1bd /src/plugins/profapi.h | |
parent | d485588a07f9d4a477a7615fee926fcfee44b29e (diff) | |
download | profani-tty-dcc2123ec4d2210c8631b181cae9d817504e8b48.tar.gz |
Allow filepath autocompletion in plugins
closes #858
Diffstat (limited to 'src/plugins/profapi.h')
-rw-r--r-- | src/plugins/profapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/profapi.h b/src/plugins/profapi.h index e7119a2b..7bc2a9e9 100644 --- a/src/plugins/profapi.h +++ b/src/plugins/profapi.h @@ -40,6 +40,7 @@ #define prof_completer_add(key, items) _prof_completer_add(__FILE__, key, items) #define prof_completer_remove(key, items) _prof_completer_remove(__FILE__, key, items) #define prof_completer_clear(key) _prof_completer_clear(__FILE__, key) +#define prof_filepath_completer_add(prefix) _prof_filepath_completer_add(__FILE__, prefix) #define prof_win_create(win, input_handler) _prof_win_create(__FILE__, win, input_handler) #define prof_disco_add_feature(feature) _prof_disco_add_feature(__FILE__, feature) @@ -62,6 +63,7 @@ void (*_prof_register_timed)(const char *filename, TIMED_CB callback, int interv void (*_prof_completer_add)(const char *filename, const char *key, char **items); void (*_prof_completer_remove)(const char *filename, const char *key, char **items); void (*_prof_completer_clear)(const char *filename, const char *key); +void (*_prof_filepath_completer_add)(const char *filename, const char *prefix); void (*prof_notify)(const char *message, int timeout_ms, const char *category); |