📄 cdio.h
字号:
/*! Return a string containing the default CUE file that would be used when none is specified. NULL is returned on error or there is no device. */ char * cdio_get_default_device_cdrdao(void); char **cdio_get_devices_cdrdao(void); /*! Set up CD-ROM for reading. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no driver for a some sort of hardware CD-ROM. */ CdIo_t * cdio_open_cd (const char *device_name); /*! Set up CD-ROM for reading. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no driver for a some sort of hardware CD-ROM. */ CdIo_t * cdio_open_am_cd (const char *psz_device, const char *psz_access_mode); /*! CDRWIN BIN/CUE CD disc-image routines. Source is the .cue file @return the cdio object for subsequent operations. NULL on error. */ CdIo_t * cdio_open_cue (const char *cue_name); /*! Set up CD-ROM for reading using the BSDI driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no BSDI driver. @see cdio_open */ CdIo_t * cdio_open_bsdi (const char *psz_source_name); /*! Set up CD-ROM for reading using the BSDI driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no BSDI driver. @see cdio_open */ CdIo_t * cdio_open_am_bsdi (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the BSDI driver would use when none is specified. @return the cdio object for subsequent operations. NULL on error or there is no BSDI driver. @see cdio_open_cd, cdio_open */ char * cdio_get_default_device_bsdi(void); /*! Return a list of all of the CD-ROM devices that the BSDI driver can find. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. */ char **cdio_get_devices_bsdi(void); /*! Set up CD-ROM for reading using the FreeBSD driver. The device_name is the some sort of device name. NULL is returned on error or there is no FreeBSD driver. @see cdio_open_cd, cdio_open */ CdIo_t * cdio_open_freebsd (const char *paz_source_name); /*! Set up CD-ROM for reading using the FreeBSD driver. The device_name is the some sort of device name. NULL is returned on error or there is no FreeBSD driver. @see cdio_open_cd, cdio_open */ CdIo_t * cdio_open_am_freebsd (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the FreeBSD driver would use when none is specified. NULL is returned on error or there is no CD-ROM device. */ char * cdio_get_default_device_freebsd(void); /*! Return a list of all of the CD-ROM devices that the FreeBSD driver can find. */ char **cdio_get_devices_freebsd(void); /*! Set up CD-ROM for reading using the GNU/Linux driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no GNU/Linux driver. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. */ CdIo_t * cdio_open_linux (const char *source_name); /*! Set up CD-ROM for reading using the GNU/Linux driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no GNU/Linux driver. */ CdIo_t * cdio_open_am_linux (const char *source_name, const char *access_mode); /*! Return a string containing the default device name that the GNU/Linux driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them. NULL is returned on error or there is no CD-ROM device. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. @see cdio_open_cd, cdio_open */ char * cdio_get_default_device_linux(void); /*! Return a list of all of the CD-ROM devices that the GNU/Linux driver can find. */ char **cdio_get_devices_linux(void); /*! Set up CD-ROM for reading using the Sun Solaris driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no Solaris driver. */ CdIo_t * cdio_open_solaris (const char *source_name); /*! Set up CD-ROM for reading using the Sun Solaris driver. The device_name is the some sort of device name. @return the cdio object for subsequent operations. NULL on error or there is no Solaris driver. */ CdIo_t * cdio_open_am_solaris (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the Solaris driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them. NULL is returned on error or there is no CD-ROM device. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. @see cdio_open_cd, cdio_open */ char * cdio_get_default_device_solaris(void); /*! Return a list of all of the CD-ROM devices that the Solaris driver can find. */ char **cdio_get_devices_solaris(void); /*! Set up CD-ROM for reading using the Apple OSX driver. The device_name is the some sort of device name. NULL is returned on error or there is no OSX driver. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. @see cdio_open_cd, cdio_open */ CdIo_t * cdio_open_osx (const char *psz_source_name); /*! Set up CD-ROM for reading using the Apple OSX driver. The device_name is the some sort of device name. NULL is returned on error or there is no OSX driver. @see cdio_open_cd, cdio_open */ CdIo_t * cdio_open_am_osx (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the OSX driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. */ char * cdio_get_default_device_osx(void); /*! Return a list of all of the CD-ROM devices that the OSX driver can find. */ char **cdio_get_devices_osx(void); /*! Set up CD-ROM for reading using the Microsoft Windows driver. The device_name is the some sort of device name. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. */ CdIo_t * cdio_open_win32 (const char *source_name); /*! Set up CD-ROM for reading using the Microsoft Windows driver. The device_name is the some sort of device name. NULL is returned on error or there is no Microsof Windows driver. */ CdIo_t * cdio_open_am_win32 (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the Win32 driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them. In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM. @see cdio_open_cd, cdio_open */ char * cdio_get_default_device_win32(void); char **cdio_get_devices_win32(void); /*! Set up CD-ROM for reading using the Nero driver. The device_name is the some sort of device name. @return true on success; NULL on error or there is no Nero driver. */ CdIo_t * cdio_open_nrg (const char *source_name); /*! Set up CD-ROM for reading using the Nero driver. The device_name is the some sort of device name. @return true on success; NULL on error or there is no Nero driver. */ CdIo_t * cdio_open_am_nrg (const char *psz_source_name, const char *psz_access_mode); /*! Return a string containing the default device name that the NRG driver would use when none is specified. A scan is made for NRG disk images in the current directory.. NULL is returned on error or there is no CD-ROM device. */ char * cdio_get_default_device_nrg(void); char **cdio_get_devices_nrg(void); /*! Determine if bin_name is the bin file part of a CDRWIN CD disk image. @param bin_name location of presumed CDRWIN bin image file. @return the corresponding CUE file if bin_name is a BIN file or NULL if not a BIN file. */ char *cdio_is_binfile(const char *bin_name); /*! Determine if cue_name is the cue sheet for a CDRWIN CD disk image. @return corresponding BIN file if cue_name is a CDRWIN cue file or NULL if not a CUE file. */ char *cdio_is_cuefile(const char *cue_name); /*! Determine if psg_nrg is a Nero CD disk image. @param psz_nrg location of presumed NRG image file. @return true if psz_nrg is a Nero NRG image or false if not a NRG image. */ bool cdio_is_nrg(const char *psz_nrg); /*! Determine if psg_toc is a TOC file for a cdrdao CD disk image. @param psz_toc location of presumed TOC image file. @return true if toc_name is a cdrdao TOC file or false if not a TOC file. */ bool cdio_is_tocfile(const char *psz_toc); /*! Determine if source_name refers to a real hardware CD-ROM. @param source_name location name of object @param driver_id driver for reading object. Use DRIVER_UNKNOWN if you don't know what driver to use. @return true if source_name is a device; If false is returned we could have a CD disk image. */ bool cdio_is_device(const char *source_name, driver_id_t driver_id); #ifdef __cplusplus}#endif /* __cplusplus */#endif /* __CDIO_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -