aboutsummaryrefslogtreecommitdiffstats
path: root/android/snaphost-android.h
blob: ae558baf77e4aa987e2c79f4dbd35caa3e9b16c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Copyright (C) 2012 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
*/

#ifndef _ANDROID_SNAPHOST_ANDROID_H_
#define _ANDROID_SNAPHOST_ANDROID_H_

/* Matches HW config saved for a VM snapshot against the current HW config.
 * Param:
 *  hw_ini - IniFile instance containing the current HW config settings.
 *  name - Name of the snapshot for which the VM is loading.
 * Return:
 *  Boolean: 1 if HW configurations match, or 0 if they don't match.
 */
extern int snaphost_match_configs(IniFile* hw_ini, const char* name);

/* Saves HW config settings for the current VM.
 * Param:
 *  name - Name of the snapshot for the current VM.
 */
extern void snaphost_save_config(const char* name);

#endif  /* _ANDROID_SNAPHOST_ANDROID_H_ */