• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* 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 
16 #include "android/utils/ini.h"
17 
18 /* 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  */
25 extern 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  */
31 extern void snaphost_save_config(const char* name);
32 
33 #endif  /* _ANDROID_SNAPHOST_ANDROID_H_ */
34 
35