diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-23 22:14:26 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-23 22:15:27 +0100 |
commit | cbba58914fcbe8b4df713611b1ebacba098ffd16 (patch) | |
tree | c3376efd8a5d65c775611333f451994bf2d620b3 /include/rofi.h | |
parent | ad778b7dc107ddc851fdb9e249ca2aa340766d93 (diff) |
Some cleanups and re-ordering of parameters to be consistent.
Diffstat (limited to 'include/rofi.h')
-rw-r--r-- | include/rofi.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/rofi.h b/include/rofi.h index 2cf0d6d7..83595226 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -79,7 +79,7 @@ typedef enum * * @returns 1 when it matches, 0 if not. */ -typedef int ( *menu_match_cb )( char **tokens, int not_ascii, int case_sensitive, unsigned int index, const Switcher *data ); +typedef int ( *menu_match_cb )( const Switcher *data, char **tokens, int not_ascii, int case_sensitive, unsigned int index ); /** * @param sw the Switcher to show. @@ -289,15 +289,14 @@ struct _Switcher */ void ( *init )( struct _Switcher *sw ); unsigned int ( *get_num_entries )( const struct _Switcher *sw ); - int ( *match )( char **tokens, const char *input, int case_sensitive, int index, struct _Switcher *data ); - SwitcherMode ( *result )( int menu_retv, char **input, unsigned int selected_line, struct _Switcher *pd ); + SwitcherMode ( *result )( struct _Switcher *sw, int menu_retv, char **input, unsigned int selected_line ); void ( *destroy )( struct _Switcher *pd ); // Token match. menu_match_cb token_match; get_display_value mgrv; - int (*is_not_ascii)( const struct _Switcher *sw, unsigned int index ); + int ( *is_not_ascii )( const struct _Switcher *sw, unsigned int index ); // Pointer to private data. void *private_data; |