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 * @overwrite: replace existing snapshot with @name 22 * @errp: pointer to error object 23 * On success, return %true. 24 * On failure, store an error through @errp and return %false. 25 */ 26 bool save_snapshot(const char *name, bool overwrite, Error **errp); 27 28 /** 29 * load_snapshot: Load an internal snapshot. 30 * @name: name of internal snapshot 31 * @errp: pointer to error object 32 * On success, return %true. 33 * On failure, store an error through @errp and return %false. 34 */ 35 bool load_snapshot(const char *name, Error **errp); 36 37 #endif 38