@ -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)
if(d->fd < 0)
@ -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);
int burn_drive_is_open(struct burn_drive *d);
#endif /* __DRIVE */