Introduced new internal function burn_drive_is_open

This commit is contained in:
Thomas Schmitt 2006-08-22 17:42:44 +00:00
parent 3da15f8733
commit d6ab7897f5
2 changed files with 14 additions and 0 deletions

View File

@ -410,3 +410,14 @@ int burn_drive_is_banned(char *device_address)
return 0;
return 1;
}
/* ts A60822 */
int burn_drive_is_open(struct burn_drive *d)
{
/* a bit more detailed case distinction than needed */
if(d->fd == -1337)
return 0;
if(d->fd < 0)
return 0;
return 1;
}

View File

@ -50,4 +50,7 @@ void burn_disc_erase_sync(struct burn_drive *d, int fast);
int burn_drive_get_block_types(struct burn_drive *d,
enum burn_write_types write_type);
/* ts A60822 */
int burn_drive_is_open(struct burn_drive *d);
#endif /* __DRIVE */