Avoiding drive scan if single drive is given

This commit is contained in:
2008-08-01 10:10:13 +00:00
parent 332a92ac78
commit 98d742a4ef
4 changed files with 303 additions and 4 deletions

View File

@ -1166,6 +1166,20 @@ int burn_drive_is_banned(char *device_address)
}
/* ts A80731 */
int burn_drive_whitelist_count(void)
{
return enumeration_whitelist_top + 1;
}
char *burn_drive_whitelist_item(int idx, int flag)
{
if (idx < 0 || idx > enumeration_whitelist_top)
return NULL;
return enumeration_whitelist[idx];
}
/* ts A70924 */
int burn_drive__fd_from_special_adr(char *adr)
{