Home | History | Annotate | Download | only in android
      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 /* Matches HW config saved for a VM snapshot against the current HW config.
     17  * Param:
     18  *  hw_ini - IniFile instance containing the current HW config settings.
     19  *  name - Name of the snapshot for which the VM is loading.
     20  * Return:
     21  *  Boolean: 1 if HW configurations match, or 0 if they don't match.
     22  */
     23 extern int snaphost_match_configs(IniFile* hw_ini, const char* name);
     24 
     25 /* Saves HW config settings for the current VM.
     26  * Param:
     27  *  name - Name of the snapshot for the current VM.
     28  */
     29 extern void snaphost_save_config(const char* name);
     30 
     31 #endif  /* _ANDROID_SNAPHOST_ANDROID_H_ */
     32 
     33