diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-09-08 21:41:54 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-09-08 21:41:54 +0200 |
commit | 13203c9de774346e271d79afce5fbcd7340081dc (patch) | |
tree | 25f1d991379e7770730dcb3dfcfd77e843713035 /include/rofi.h | |
parent | ae26c13daf276f464a589cb50a95e8d3cd59a381 (diff) |
Refactor to make dmenu use Switcher, and make menu func use this.
Diffstat (limited to 'include/rofi.h')
-rw-r--r-- | include/rofi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rofi.h b/include/rofi.h index bab5478f..3d809ec9 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -79,6 +79,7 @@ typedef enum typedef int ( *menu_match_cb )( char **tokens, const char *input, int case_sensitive, unsigned int index, Switcher *data ); /** + * @param sw the Switcher to show. * @param lines An array of strings to display. * @param num_lines Length of the array with strings to display. * @param input A pointer to a string where the inputted data is placed. @@ -93,10 +94,9 @@ typedef int ( *menu_match_cb )( char **tokens, const char *input, int case_sensi * * @returns The command issued (see MenuReturn) */ -MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prompt, - menu_match_cb mmc, void *mmc_data, int *selected_line, - get_display_value mgrv, void *mgrv_data, int *next_pos, const char *message ) __attribute__ ( ( nonnull ( 1, 3, - 4, 7 ) ) ); +MenuReturn menu ( Switcher *sw, char **input, char *prompt, + int *selected_line, + unsigned int *next_pos, const char *message ) __attribute__ ( ( nonnull ( 1, 2, 3, 4 ) ) ); /** * @param sig The caught signal * |