libcdio-paranoia  10.2+0.94+2git
Macros | Functions
scan_devices.c File Reference
#include "common_interface.h"
#include "low_interface.h"
#include "utils.h"
#include "cdio/mmc.h"
#include "cdio/util.h"
#include <limits.h>
#include <ctype.h>

Macros

#define PATH_MAX   4096
 

Functions

cdrom_drive_tcdio_cddap_find_a_cdrom (int messagedest, char **ppsz_messages)
 
cdrom_drive_tcdio_cddap_identify (const char *psz_dev, int messagedest, char **ppsz_messages)
 
cdrom_drive_tcdio_cddap_identify_cdio (CdIo_t *p_cdio, int messagedest, char **ppsz_messages)
 

Macro Definition Documentation

#define PATH_MAX   4096

Referenced by cdio_cddap_find_a_cdrom().

Function Documentation

cdrom_drive_t* cdio_cddap_find_a_cdrom ( int  messagedest,
char **  ppsz_message 
)

autosense functions Get a CD-ROM drive with a CD-DA in it. If mesagedest is CDDA_MESSAGE_LOGIT, then any messages in the process will be stored in message.

When using CDDA_MESSAGE_LOGIT, free the message buffer with cdio_cddap_free_messages() after use.

References cdda_identify, idmessage(), idperror(), NULL, and PATH_MAX.

cdrom_drive_t* cdio_cddap_identify ( const char *  psz_dev,
int  messagedest,
char **  ppsz_messages 
)

Returns a paranoia CD-ROM drive object with a CD-DA in it or NULL if there was an error.

See also
cdio_cddap_identify_cdio

References idmessage(), and NULL.

cdrom_drive_t* cdio_cddap_identify_cdio ( CdIo_t *  p_cdio,
int  messagedest,
char **  ppsz_messages 
)

Returns a paranoia CD-ROM drive object with a CD-DA in it or NULL if there was an error. In contrast to cdio_cddap_identify, we start out with an initialized p_cdio object. For example you may have used that for other purposes such as to get CDDB/CD-Text information.

See also
cdio_cddap_identify

References cdrom_drive_s::b_swap_bytes, cdrom_drive_s::bigendianp, cdrom_drive_s::cdda_device_name, cdrom_drive_s::drive_model, cdrom_drive_s::drive_type, idmessage(), idperror(), cdrom_drive_s::messagedest, cdrom_drive_s::nsectors, NULL, and cdrom_drive_s::p_cdio.