Commit Graph

81 Commits

Author SHA1 Message Date
rocky
20e8974df8 Big change!
We now are starting to have universal MMC routines. To do this we need
to have function pointers to the OS-specific MMC send/run command.

Expect some breakage. Down the line though this will increase code reuse,
reliabilty, and make the library more user-customizable.
2004-07-26 02:54:37 +00:00
rocky
fd5e6d1243 Reduce overall number of CD disc modes. I thing the main purpose
that will be used is to separate CD Audio from CD Data, XA and DVD's.

On GNU/Linux it seems that the implementation is a bit artificial.
2004-07-25 18:37:09 +00:00
rocky
5f36bce150 Pedantic ordering. 2004-07-25 17:35:02 +00:00
rocky
dce714ce56 Typo and small formatting changes. 2004-07-25 15:47:11 +00:00
rocky
85b8e52fe0 Better testing to see if TOC is initialized by read_toc_linux before
using info based on that.

Order of routines alphabetized a little bit better.
2004-07-25 15:29:51 +00:00
rocky
1dfdba7b7d sector.h: add more DVD types.
_cdio_linux.c: Add ability in GNU/Linux to determine if a drive has a
DVD in it.

cd-info: show the drive type.
2004-07-25 03:05:18 +00:00
rocky
8ec061202a freebsd: add scsi_mmc_cmd_run and use it.
Others: small changes.
2004-07-24 05:42:09 +00:00
rocky
2040c4abf7 Wasn't allowing call of new scsi_mmc_run_cmd. 2004-07-22 11:00:59 +00:00
rocky
2d92a271ec Fell into the a common C pitfall 2004-07-22 10:13:08 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +00:00
rocky
02872bfb2f Add get_discmode to return what kind of CD or DVD we've got. This is
no where near finished. In fact I just started it on GNU/Linux.

CD-TEXT on GNU/Linux: turn "warning" into "info". Reduce the chance of
error (although we still don't get the CD-TEXT.)
2004-07-21 10:19:20 +00:00
rocky
8a99889f49 Add READTOC format defines. 2004-07-19 01:13:31 +00:00
rocky
212b701ef6 MMC mode page capabilities gone over. Some more were added. 2004-07-18 03:35:07 +00:00
rocky
e84c6316b0 Expand getting drive capabilities. We now have 3 masks where we had
only one before.
2004-07-17 22:16:46 +00:00
rocky
a94c2a2728 Add common routine to extract cdtext data. 2004-07-17 08:59:44 +00:00
rocky
d07ed75256 Corrections for new cdtext interface.
Some more precise track handling when the first track is not 1.
Some of this needs to be tested.
2004-07-17 02:43:41 +00:00
rocky
0c36493f8d Expand get_cdtext to include a track number. 0 = disc info. 2004-07-17 02:18:26 +00:00
rocky
c77831ff51 cmd -> cdb to match MMC terminology and Solaris naming. 2004-07-15 11:36:12 +00:00
rocky
14646f641f MSWindows: comment corrections
_cdio_linux.c: perhaps closer to getting CD TEXT correct.
2004-07-15 02:24:29 +00:00
rocky
2649b729a1 Yet more code cleanups. 2004-07-13 04:33:05 +00:00
rocky
ed6f60868d Start to merge in cue parsing from cuetools. Also moves forward CDTEXT
from a different direction.
2004-07-09 01:05:31 +00:00
rocky
65fd7d3b43 Regularize MMC commands more. Add ALLOW_PREVENT_MEDIUM.
Start CDTEXT. _cdio_linux.c: better at reporting errors.
2004-07-08 01:27:57 +00:00
rocky
52424fda4d Revert last change. Need to return char * for MCN. Also replace that
magic number 100 with MAX_TRACKS+1.
2004-06-27 16:36:38 +00:00
rocky
79ea450a56 Add type for holding MCN and ISRC. Add type for session
Replace magic constant 100 with CDIO_MAX_TRACK+1 where appropriate.

_cdio_osx: save session number and presumably some tighter coding.
nrg.c: make sure we add zero byte to end of MCN.
2004-06-27 15:29:20 +00:00
rocky
e21255ec1a Reduce cut and paste - add common routine, to _cdio_generic.c:
cdio_read_mode1_sector.
2004-06-26 00:39:00 +00:00
rocky
238b74ab7f fewer error exits in drivers. Instead, a failure code is returned. 2004-06-25 21:10:36 +00:00
rocky
eca77ca5ce Comment fixes. 2004-06-06 11:44:51 +00:00
rocky
8d0e6cd56e Doc fix. 2004-06-06 11:38:33 +00:00
rocky
c18f5a70b3 Remove another first_track = 1 assumption. 2004-06-06 11:30:48 +00:00
rocky
eed4e28a19 Back off of testing for unread TOC. Probably a good idea to do lazy
TOC reading.
2004-06-06 11:25:13 +00:00
rocky
0bb7fadf26 More work on removing assumption that first_track is 1. 2004-06-06 10:50:55 +00:00
rocky
4ebd2a09f0 Minor coding changes. 2004-06-03 08:50:30 +00:00
rocky
5e2642af4b Remove some of the bogus assume 1 is first track.
Renamings: env -> user_data
	   _obj -> env
2004-06-02 00:43:53 +00:00
rocky
376e021218 Hopefully improve names. "user_data" comes from user. "env" an
environment is really what this is. "obj" is just to vague.
2004-05-31 12:29:09 +00:00
rocky
92ab8ff36d Remove some of the bogosity in assuming the first track starts at 1.
(Probably will be useful on multi-session CD's).
2004-05-27 10:58:11 +00:00
rocky
cb7c0e870a Go over FreeBSD code based on output from Heiner.
Hopefully 3 bugs are fixed:
  - we get the leadout track now, no core dumps
  - MSF reporting is corrected
  - track format and mode

_cdio_linux.c: use cdio #define rather than GNU/Linux one.
2004-05-13 04:32:12 +00:00
rocky
aab600b46a Make scsi_mmc.h public. 2004-05-10 03:28:51 +00:00
rocky
a41b31b805 _cdio_freebsd.c: is now in FreeBSD (with some cam code)
_cdio_linux.c - minor name changes.
2004-05-06 01:21:29 +00:00
rocky
7f10dab1a1 Small fixes. 2004-05-05 02:47:18 +00:00
rocky
8c0d08b480 Don't give "source not a device message" for uniformity with other drivers. 2004-05-04 01:57:23 +00:00
rocky
e853206824 Compilation fixes and modulization improvements. 2004-04-30 21:36:53 +00:00
rocky
7f8cefed11 Add cdio_open_am to allow specifying an access method use for
reading/controlling CD.
2004-04-30 06:54:15 +00:00
rocky
6b9bc59426 More procedure canonicalization, some #defines added and used. 2004-04-26 07:54:47 +00:00
rocky
3ecd485a7d More regularization of names. Warning: untested on freebsd and osx. 2004-04-25 15:41:26 +00:00
rocky
20974d4568 CDIO_DRIVE -> CDIO_DRIVE_CAP 2004-04-25 14:07:23 +00:00
rocky
36507b3c10 get_mcn paramater is const.
solaris: failed attempt to get mcn and drive capabilities. Some
boilerplate routines used.

scsi_mmc: more defines.

src/cd-drive.c: bugfix when cdio is null
src/util.c: small enhancement.
2004-04-25 03:52:37 +00:00
rocky
1bf5f1e464 Regularize naming convention of static routines a little bit. 2004-04-25 01:19:58 +00:00
rocky
b6a67c8d94 image/common.c, Makefile.am: common image routines.
src/cd-info.c, *.right: Now show file images under "drive capability"
bincue.c/nrg.c: report file image "drive capability"
2004-04-23 01:01:35 +00:00
rocky
12762d2d7c *.{c,h}: add cdio_get_drive_cap to determine what kind of CDROM device
we've got.

README.libcdio: suggest stonger making a separate package for cd-info
configure.ac: we are in 0.69cvs now
2004-04-22 03:24:38 +00:00
rocky
6fad463e33 mode{1,2}_form2 -> b_form2 2004-03-07 02:42:22 +00:00