diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-10 13:10:44 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-10 13:10:44 +0100 |
commit | 13810d591177c22340a6bcd2a9c8b631a0a7bf5a (patch) | |
tree | f1b23c0137b7173d1691090cc37cddc4bafcab59 /include/rofi.h | |
parent | c6a9de8c4a1dd9fb5c179ff323f0508f72974b9e (diff) |
Add experimental 'password' mode. (#315)
Diffstat (limited to 'include/rofi.h')
-rw-r--r-- | include/rofi.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/rofi.h b/include/rofi.h index 316d4cb5..a43a29eb 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -26,6 +26,12 @@ extern const char *cache_dir; */ void error_dialog ( const char *msg, int markup ); +typedef enum +{ + MENU_NORMAL = 0, + MENU_PASSWORD = 1 +} MenuFlags; + /** * @param sw the Mode to show. * @param lines An array of strings to display. @@ -37,12 +43,17 @@ void error_dialog ( const char *msg, int markup ); * @param mmc_data data to pass to mmc. * @param selected_line pointer to integer holding the selected line. * @param message Extra message to display. + * @param flags Flags indicating state of the menu. * * Main menu callback. * * @returns The command issued (see MenuReturn) */ -MenuReturn menu ( Mode *sw, char **input, char *prompt, unsigned int *selected_line, unsigned int *next_pos, const char *message ) +MenuReturn menu ( Mode *sw, + char **input, char *prompt, + unsigned int *selected_line, + unsigned int *next_pos, + const char *message, MenuFlags flags ) __attribute__ ( ( nonnull ( 1, 2, 3, 4 ) ) ); /** Reset terminal */ |