libcdio-paranoia 10.2+2.0.2
Functions
interface.c File Reference
#include "common_interface.h"
#include "low_interface.h"
#include "utils.h"
#include <cdio/bytesex.h>
#include <cdio/mmc.h>
#include <cdio/paranoia/version.h>

Functions

const char * cdio_cddap_version (void)
 
bool cdio_cddap_close_no_free_cdio (cdrom_drive_t *d)
 
int cdio_cddap_close (cdrom_drive_t *d)
 
int cdio_cddap_open (cdrom_drive_t *d)
 
int cdio_cddap_speed_set (cdrom_drive_t *d, int speed)
 
long cdio_cddap_read_timed (cdrom_drive_t *d, void *buffer, lsn_t beginsector, long sectors, int *ms)
 
long cdio_cddap_read (cdrom_drive_t *d, void *buffer, lsn_t beginsector, long sectors)
 
void cdio_cddap_verbose_set (cdrom_drive_t *d, int err_action, int mes_action)
 
char * cdio_cddap_messages (cdrom_drive_t *d)
 
char * cdio_cddap_errors (cdrom_drive_t *d)
 
void cdio_cddap_free_messages (char *psz_messages)
 

Function Documentation

◆ cdio_cddap_close()

int cdio_cddap_close ( cdrom_drive_t d)

Closes d and releases all storage associated with it. Doubles as "cdrom_drive_free()".

Parameters
dcdrom_drive_t object to be closed.
Returns
0 if passed a null pointer and 1 if not in which case some work was probably done.
See also
cdio_cddap_close_no_free_cdio

◆ cdio_cddap_close_no_free_cdio()

bool cdio_cddap_close_no_free_cdio ( cdrom_drive_t d)

Closes d and releases all storage associated with it except the internal p_cdio pointer.

Parameters
dcdrom_drive_t object to be closed.
Returns
0 if passed a null pointer and 1 if not in which case some work was probably done.
See also
cdio_cddap_close

◆ cdio_cddap_errors()

char * cdio_cddap_errors ( cdrom_drive_t d)

Returns the current error buffer. Free the returned string using cdio_cddap_free_messages() if not NULL.

◆ cdio_cddap_free_messages()

void cdio_cddap_free_messages ( char *  psz_messages)

Frees the message string passed in psz_messages.

References NULL.

◆ cdio_cddap_messages()

char * cdio_cddap_messages ( cdrom_drive_t d)

Returns the current message buffer. Free the returned string using cdio_cddap_free_messages() if not NULL.

◆ cdio_cddap_open()

int cdio_cddap_open ( cdrom_drive_t d)

◆ cdio_cddap_read()

long cdio_cddap_read ( cdrom_drive_t d,
void *  buffer,
lsn_t  beginsector,
long  sectors 
)

◆ cdio_cddap_read_timed()

long cdio_cddap_read_timed ( cdrom_drive_t d,
void *  buffer,
lsn_t  beginsector,
long  sectors,
int *  ms 
)

◆ cdio_cddap_speed_set()

int cdio_cddap_speed_set ( cdrom_drive_t d,
int  speed 
)

drive-oriented functions

◆ cdio_cddap_verbose_set()

void cdio_cddap_verbose_set ( cdrom_drive_t d,
int  err_action,
int  mes_action 
)

◆ cdio_cddap_version()

const char * cdio_cddap_version ( void  )

informational functions

References LIBCDIO_PARANOIA_VERSION.