diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-22 00:33:26 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-22 00:33:26 +0100 |
commit | 5bdcd47dde65b2b79ccbc07c6b12905bfceb821c (patch) | |
tree | 07ff7b06ee256a3defbd706747d19084d7eae305 /include/rofi.h | |
parent | 8c9b72f34edb6cf2f3e8bd1b3d0efa36b0c05fff (diff) |
consts and small ensurance (though should be correct to begin with)
Diffstat (limited to 'include/rofi.h')
-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; |