Commit Graph

32 Commits

Author SHA1 Message Date
R. Bernstein
dd7a5dc1bb ld: duplicate symbol _cdtext_format_enum in .libs/gnu_linux.o and
.libs/cdtext.o for architecture x86_64
on OSX. I don't think it needs to be included in gnu_linux.c anyway.
Comment #7, bug #30019
2012-04-16 19:12:48 -04:00
R. Bernstein
79255a6cb8 track.c, gnu_linux.c: Test for exceding max track limit but allow specifying the leadout track in some cases.
Makefile.am: need to build extract unconditionally since that is used in testing
2012-03-25 17:18:49 -04:00
R. Bernstein
dbf6d24765 1) cdtext objects are no longer associated with a track but with the disc.
2) - cdio_get_cdtext no longer takes track as an argument
- cdtext_get, cdtext_get_const, cdtext_set require track argument
3) Language, Genre, Genre Code and Encoding Fields are now properly parsed and stored in the cdtext object
4) Added public function cdio_get_cdtext_raw to extract the binary CD-Text
5) Added CDTEXTFILE keyword logic in cue sheet parser. Parses binary/raw CD-Text files
6) Added cdtext_genre2str to convert genre code
7) altered the example programs, test drivers, cdda-player and cd-info to work with these changes
8) Added test case
9) A few smaller changes
A disc either holds CD-Text for all the tracks or does not hold any. Therefore a CD-Text object for the whole disc seems more natural to me. It also enables us to store global fields, like genre, encoding, language.

Patch was tested on GNU/Linux 32 bit running Gentoo.
2011-11-24 20:54:40 -05:00
R. Bernstein
f215cad224 Make sure config.h or the copy of that gets included only once to reduce duplicate include
warnings.
2011-10-20 19:44:10 -04:00
R. Bernstein
9eb137206c sprintf -> snprintf 2011-10-19 21:12:14 -04:00
rocky
940b7cd848 patch from Honza Horak using Coverity's static analysis tool. 2011-05-30 15:19:22 -04:00
R. Bernstein
2d3b7d28b4 Add SCSI-MMC GET CONFIGURATION.
Add Frank Endres' disc type determination via MMC.
Be more careful to suffix with CDIO_MMC which I hope will reduce possible name conflicts.
2010-02-07 21:04:21 -05:00
R. Bernstein
aa7f7e1315 Start populating mmc/mmc_hl_cmds.c. Create mmc directory in preparation
for making it a library.

mmc.h:  CDIO_MMC_GPCMD_ALLOW_MEDIUM_REMOVAL ->
        CDIO_MMC_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
mmc.c:  Move mm_eject_media and mmc_set_drive_speed to mmc/mmc_hl_cmds.c
mmc_ll_cmds.c: add mmc_prevent_allow_medium_removal,
               move mmc_mode_sense to mmc/mmc_hl_cmds.c
2010-02-07 19:21:33 -05:00
R. Bernstein
8083e17683 Fix in changing data types. 2010-02-03 05:30:10 -05:00
R. Bernstein
991ea303d7 Add more doxygen comments as to sense request information means and add a typedef for mmc_sense_request.
Use this in win32_ioctl.c.
2010-02-03 05:22:20 -05:00
R. Bernstein
e281b22c3c Add type definition for SCSI sense data. 2010-02-03 04:53:25 -05:00
R. Bernstein
9c96d2c448 More information around access modes for specific drivers. 2010-01-18 03:39:33 -05:00
R. Bernstein
08d75ead2e Add way to determine if MMC commands are available: get_arg("mmc-supported?") 2010-01-16 21:18:31 -05:00
R. Bernstein
bd096b3eca FreeBSD read/write and most-recent scsi sense access courtesy of Thomas Schmitt. 2010-01-16 21:02:34 -05:00
R. Bernstein
7d8b6d0a4d cdio_follow_symlink -> cdio_realpath which is really POSIX realpath. (Suggestion via Thomas Schmitt.) gnu_linux.c: report errors when they occur. 2010-01-16 16:44:12 -05:00
R. Bernstein
fe77f93bf7 Start to request sense data in DeviceIOControl of MS Windows. gnu_linux.c: small changes. 2010-01-01 05:52:52 -05:00
WIndows XP
309bff3441 Last change to gnu_linux.c broke things on non GNU/Linux 2009-12-31 22:21:11 -05:00
R. Bernstein
cf882cfd20 Add ability to retrieve SCSI tuple for a name and/or fake one up. This
helps programs that want to be cd-record compatible. In particular to
parameters were added to cdio_get_arg, "scsi-tuple", and
"scsi-tuple-linux".

Code from Thomas Schmitt.
2009-12-31 18:51:50 -05:00
WIndows XP
67e1f57468 First attempt to add sense retrieval in Windows driver. Clean up
return code in run_mmc_cmd_aspi.
2009-12-25 16:32:08 -05:00
R. Bernstein
a3ed634fe5 Recording and retrieval of SCSI sense reply for GNU/Linux. 2009-12-25 08:45:48 -05:00
R. Bernstein
c498cec5e1 Add interface for retrieval of last SCSI sense command. 2009-12-25 08:36:02 -05:00
R. Bernstein
507beb23a1 Keep indentions the same as the others. 2009-12-24 08:58:06 -05:00
R. Bernstein
f031f69f69 On ioctl's, a negative number is considered an unspecified error while
a positive number is not. Replace tabs in lines with blanks.
2009-12-24 06:28:27 -05:00
R. Bernstein
6cb64d1a08 gnu_linux.c: run_mmc_cmd_linux: be sure to set return return code.
testiso9660.c: broke things working when on hacking on Solaris
2009-12-23 22:13:51 -05:00
R. Bernstein
1d609ef8aa NONBLOCK inadvertently removed. 2009-12-20 06:38:29 -05:00
R. Bernstein
4ac7926091 Writing opens drive exclusive, not nonblock. 2009-12-20 06:35:43 -05:00
R. Bernstein
1b8e52712d Add MMC_RDWR access mode - open drive R/W only with this access.
Start GNU/Linux test driver.
2009-12-20 06:30:24 -05:00
R. Bernstein
4e8eff137e Thomas Schmitt's first patches towards supporting writing from libcdio. Somewhat experimental and for now just the GNU/Linux driver. 2009-12-19 18:17:18 -05:00
R. Bernstein
3844f42df8 Remove some cppcheck style warnings 2009-10-27 21:28:11 -04:00
R. Bernstein
2522c26ec8 Adapted from patches by Nicolas Boullis on Debian:
* alignment issues on sparc
 * "make check" failure when stderr is not a tty
 * wrong program name in manpages in tarball
 * build failure with hurd
 * "make check" failure on machines with no disc drive
 * make distclean fixes
2009-07-02 20:26:39 -04:00
R. Bernstein
7c497a2c73 Endless loop when no CD-rom drives. Patch thanks to Adrian Reber 2008-12-30 14:14:00 -05:00
R. Bernstein
95f087cdc3 First commit after CVS conversion. Should be just administrative changes. 2008-11-29 00:56:26 -05:00