Logo Search packages:      
Sourcecode: vcdimager version File versions

char* vcdinfo_get_default_device ( const vcdinfo_obj_t *  vcd_obj  ) 

Return a string containing the default VCD device if none is specified. This might be something like "/dev/cdrom" on Linux or "/vol/dev/aliases/cdrom0" on Solaris, or maybe "VIDEOCD.CUE" for if bin/cue I/O routines are in effect.

Return NULL we can't get this information.

Return a string containing the default VCD device if none is specified. Return NULL we can't get this information.

Definition at line 609 of file info.c.

References vcdinfo_get_default_device().

Referenced by vcdinfo_get_default_device().

{

  /* If device not already open, then we'll open it temporarily and
     let CdIo select a driver, get the default for that and then
     close/destroy the temporary we created.
   */
  CdIo *cdio=NULL;
  if (vcd_obj != NULL && vcd_obj->img != NULL)
    cdio = vcd_obj->img;

  return cdio_get_default_device(cdio);
}


Generated by  Doxygen 1.6.0   Back to index