Add dialog with default 'no' answer.

This commit is contained in:
Ondrej Kozina
2019-05-22 12:06:57 +02:00
parent 3f549ad0df
commit 09cb2d76ef
2 changed files with 6 additions and 0 deletions

View File

@@ -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)) \

View File

@@ -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;