mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Add dialog with default 'no' answer.
This commit is contained in:
@@ -70,6 +70,7 @@ void tool_log(int level, const char *msg, void *usrptr __attribute__((unused)));
|
||||
void quiet_log(int level, const char *msg, void *usrptr);
|
||||
|
||||
int yesDialog(const char *msg, void *usrptr);
|
||||
int noDialog(const char *msg, void *usrptr);
|
||||
void show_status(int errcode);
|
||||
const char *uuid_or_device(const char *spec);
|
||||
__attribute__ ((noreturn)) \
|
||||
|
||||
@@ -169,6 +169,11 @@ int yesDialog(const char *msg, void *usrptr)
|
||||
return _dialog(msg, usrptr, 1);
|
||||
}
|
||||
|
||||
int noDialog(const char *msg, void *usrptr)
|
||||
{
|
||||
return _dialog(msg, usrptr, 0);
|
||||
}
|
||||
|
||||
void show_status(int errcode)
|
||||
{
|
||||
char *crypt_error;
|
||||
|
||||
Reference in New Issue
Block a user