mirror of https://github.com/xqemu/xqemu.git
QError: New QERR_DEVICE_NOT_ENCRYPTED
Signed-off-by: Shahar Havivi <shaharh@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4a39943bd1
commit
25b28f01d8
4
qerror.c
4
qerror.c
|
@ -64,6 +64,10 @@ static const QErrorStringTable qerror_table[] = {
|
|||
.error_fmt = QERR_DEVICE_INIT_FAILED,
|
||||
.desc = "Device '%(device)' could not be initialized",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_DEVICE_NOT_ENCRYPTED,
|
||||
.desc = "Device '%(device)' is not encrypted",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_DEVICE_LOCKED,
|
||||
.desc = "Device '%(device)' is locked",
|
||||
|
|
3
qerror.h
3
qerror.h
|
@ -57,6 +57,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||
#define QERR_DEVICE_ENCRYPTED \
|
||||
"{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
|
||||
|
||||
#define QERR_DEVICE_NOT_ENCRYPTED \
|
||||
"{ 'class': 'DeviceNotEncrypted', 'data': { 'device': %s } }"
|
||||
|
||||
#define QERR_DEVICE_INIT_FAILED \
|
||||
"{ 'class': 'DeviceInitFailed', 'data': { 'device': %s } }"
|
||||
|
||||
|
|
Loading…
Reference in New Issue