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