Introduced new internal function burn_drive_is_open

trunk@386
Thomas Schmitt 17 years ago
parent 3da15f8733
commit d6ab7897f5
  1. 11
      libburn/drive.c
  2. 3
      libburn/drive.h

@ -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;
}

@ -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 */

Loading…
Cancel
Save