mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-14 20:30:04 +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);
|
void quiet_log(int level, const char *msg, void *usrptr);
|
||||||
|
|
||||||
int yesDialog(const char *msg, void *usrptr);
|
int yesDialog(const char *msg, void *usrptr);
|
||||||
|
int noDialog(const char *msg, void *usrptr);
|
||||||
void show_status(int errcode);
|
void show_status(int errcode);
|
||||||
const char *uuid_or_device(const char *spec);
|
const char *uuid_or_device(const char *spec);
|
||||||
__attribute__ ((noreturn)) \
|
__attribute__ ((noreturn)) \
|
||||||
|
|||||||
@@ -169,6 +169,11 @@ int yesDialog(const char *msg, void *usrptr)
|
|||||||
return _dialog(msg, usrptr, 1);
|
return _dialog(msg, usrptr, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int noDialog(const char *msg, void *usrptr)
|
||||||
|
{
|
||||||
|
return _dialog(msg, usrptr, 0);
|
||||||
|
}
|
||||||
|
|
||||||
void show_status(int errcode)
|
void show_status(int errcode)
|
||||||
{
|
{
|
||||||
char *crypt_error;
|
char *crypt_error;
|
||||||
|
|||||||
Reference in New Issue
Block a user