diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rofi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rofi.h b/include/rofi.h index 28b66197..81230f4b 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -42,7 +42,7 @@ typedef enum typedef SwitcherMode ( *switcher_callback )( char **input, void *data ); typedef void ( *switcher_free )( Switcher *data ); -typedef char * ( *get_display_value )( unsigned int selected_line, struct _Switcher *data, int *state, int get_entry ); +typedef char * ( *get_display_value )( unsigned int selected_line, const Switcher *data, int *state, int get_entry ); /** * State returned by the rofi window. */ @@ -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, Switcher *data ); +typedef int ( *menu_match_cb )( char **tokens, int not_ascii, int case_sensitive, unsigned int index, const Switcher *data ); /** * @param sw the Switcher to show. @@ -297,7 +297,7 @@ struct _Switcher get_display_value mgrv; - int (*is_not_ascii)( struct _Switcher *sw, unsigned int index ); + int (*is_not_ascii)( const struct _Switcher *sw, unsigned int index ); // Pointer to private data. void *private_data; |