/* Read a hardware.ini if it is located in the skin directory */ static int _avdInfo_getBuildSkinHardwareIni( AvdInfo* i ) { char* skinName; char* skinDirPath; avdInfo_getSkinInfo(i, &skinName, &skinDirPath); if (skinDirPath == NULL) return 0; int result = avdInfo_getSkinHardwareIni(i, skinName, skinDirPath); AFREE(skinName); AFREE(skinDirPath); return result; }
/* Read a hardware.ini if it is located in the skin directory */ static int _avdInfo_getBuildSkinHardwareIni( AvdInfo* i ) { char* skinName; char* skinDirPath; char temp[PATH_MAX], *p=temp, *end=p+sizeof(temp); avdInfo_getSkinInfo(i, &skinName, &skinDirPath); if (skinDirPath == NULL) return 0; int result = avdInfo_getSkinHardwareIni(i, skinName, skinDirPath); AFREE(skinName); AFREE(skinDirPath); return result; }