libcdio-paranoia 10.2+2.0.2
Functions
common_interface.h File Reference
#include <cdio/types.h>
#include "low_interface.h"

Go to the source code of this file.

Functions

int ioctl_ping_cdrom (int fd)
 
char * atapi_drive_info (int fd)
 
int FixupTOC (cdrom_drive_t *d, track_t tracks)
 

Function Documentation

◆ atapi_drive_info()

char * atapi_drive_info ( int  fd)

◆ FixupTOC()

int FixupTOC ( cdrom_drive_t d,
track_t  i_tracks 
)

Here we fix up a couple of things that will never happen. yeah, right.

rocky OMITTED FOR NOW: The multisession stuff is from Hannu's code; it assumes it knows the leadout/leadin size.

Here we fix up a couple of things that will never happen. yeah, right.

The multisession stuff is from Hannu code; it assumes it knows the leadout/leadin size. [I think Hannu refers to Hannu Savolainen from GNU/Linux Kernel code.]

Returns
-1 if we can't get multisession info, 0 if there is one session only or the last session LBA is the same as the first audio track and 1 if the multi-session lba is higher than first audio track

◆ ioctl_ping_cdrom()

int ioctl_ping_cdrom ( int  fd)

Test for presence of a cdrom by pinging with the 'CDROMVOLREAD' ioctl()