1 /* 2 * QEMU snapshots 3 * 4 * Copyright (c) 2004-2008 Fabrice Bellard 5 * Copyright (c) 2009-2015 Red Hat Inc 6 * 7 * Authors: 8 * Juan Quintela <quintela@redhat.com> 9 * 10 * 11 * This work is licensed under the terms of the GNU GPL, version 2 or later. 12 * See the COPYING file in the top-level directory. 13 */ 14 15 #ifndef QEMU_MIGRATION_SNAPSHOT_H 16 #define QEMU_MIGRATION_SNAPSHOT_H 17 18 /** 19 * save_snapshot: Save an internal snapshot. 20 * @name: name of internal snapshot 21 * @errp: pointer to error object 22 * On success, return %true. 23 * On failure, store an error through @errp and return %false. 24 */ 25 bool save_snapshot(const char *name, Error **errp); 26 27 /** 28 * load_snapshot: Load an internal snapshot. 29 * @name: name of internal snapshot 30 * @errp: pointer to error object 31 * On success, return %true. 32 * On failure, store an error through @errp and return %false. 33 */ 34 bool load_snapshot(const char *name, Error **errp); 35 36 #endif 37