diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-24 13:59:35 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-24 13:59:35 +0100 |
commit | fa2bcd778c9840f660c28f007c1bd1456a8a7eb7 (patch) | |
tree | 7801496ff30e353efbdca0cebc7a74bf5f63b658 /include | |
parent | bdeb57a2c4cf88e2fab7ce03db35ae4be7b6fb8c (diff) |
Fix for complete issue #273.
- Add complete handler.
Diffstat (limited to 'include')
-rw-r--r-- | include/rofi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rofi.h b/include/rofi.h index a47a3aae..c790b0f6 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -34,6 +34,8 @@ typedef enum typedef void ( *switcher_free )( Switcher *data ); typedef char * ( *get_display_value )( unsigned int selected_line, const Switcher *data, int *state, int get_entry ); + +typedef char * ( *get_completion )( const Switcher *sw, unsigned int selected_line ); /** * State returned by the rofi window. */ @@ -289,6 +291,8 @@ struct _Switcher int ( *is_not_ascii )( const struct _Switcher *sw, unsigned int index ); + get_completion get_completion; + // Pointer to private data. void *private_data; |