libcdio-paranoia  10.2+0.94+2git
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

char* atapi_drive_info ( int  fd)
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

References cdrom_drive_s::audio_last_sector, cdmessage(), cdrom_drive_s::disc_toc, TOC_s::dwStartSector, and cdrom_drive_s::p_cdio.

int ioctl_ping_cdrom ( int  fd)

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