blob: 0211b5014d6040abd84d62241739cabdbeef4d28 [file] [log] [blame]
Vladimir Chtchetkinedb450d72012-01-12 13:37:40 -08001/* Copyright (C) 2012 The Android Open Source Project
2**
3** This software is licensed under the terms of the GNU General Public
4** License version 2, as published by the Free Software Foundation, and
5** may be copied, distributed, and modified under those terms.
6**
7** This program is distributed in the hope that it will be useful,
8** but WITHOUT ANY WARRANTY; without even the implied warranty of
9** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10** GNU General Public License for more details.
11*/
12
13#ifndef _ANDROID_SNAPHOST_ANDROID_H_
14#define _ANDROID_SNAPHOST_ANDROID_H_
15
David 'Digit' Turnerf9077a82014-02-10 23:10:47 +010016#include "android/utils/ini.h"
17
Vladimir Chtchetkinedb450d72012-01-12 13:37:40 -080018/* Matches HW config saved for a VM snapshot against the current HW config.
19 * Param:
20 * hw_ini - IniFile instance containing the current HW config settings.
21 * name - Name of the snapshot for which the VM is loading.
22 * Return:
23 * Boolean: 1 if HW configurations match, or 0 if they don't match.
24 */
25extern int snaphost_match_configs(IniFile* hw_ini, const char* name);
26
27/* Saves HW config settings for the current VM.
28 * Param:
29 * name - Name of the snapshot for the current VM.
30 */
31extern void snaphost_save_config(const char* name);
32
33#endif /* _ANDROID_SNAPHOST_ANDROID_H_ */
34