mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
migration: Make save_snapshot() return bool, not 0/-1
Just for consistency, following the example documented since
commit e3fe3988d7
("error: Document Error API usage rules"),
return a boolean value indicating an error is set or not.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210204124834.774401-3-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
e26f98e209
commit
7ea14df230
4 changed files with 18 additions and 11 deletions
|
@ -15,7 +15,14 @@
|
|||
#ifndef QEMU_MIGRATION_SNAPSHOT_H
|
||||
#define QEMU_MIGRATION_SNAPSHOT_H
|
||||
|
||||
int save_snapshot(const char *name, Error **errp);
|
||||
/**
|
||||
* save_snapshot: Save an internal snapshot.
|
||||
* @name: name of internal snapshot
|
||||
* @errp: pointer to error object
|
||||
* On success, return %true.
|
||||
* On failure, store an error through @errp and return %false.
|
||||
*/
|
||||
bool save_snapshot(const char *name, Error **errp);
|
||||
int load_snapshot(const char *name, Error **errp);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue