Commit Graph

35 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
b4cea7fd9e Add get_disc_mode to image readers.
Add it in cd-info display.
Update regression tests.

I'm not sure disc_mode is all that helpful or correct.
2004-07-24 14:23:37 +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
0d3c10c775 Redo CD-TEXT handling. First minimally working version for CD bin/cue
and cdrdao images.
2004-07-11 14:25:07 +00:00
rocky
adac30f39c Initialize cdtext to NULL and other add some initializations that should
have been done.
2004-07-11 02:28:06 +00:00
rocky
5c7ed94f90 Save modes types now that we have that in the disc structure.
Information for this comes courtesy extractnrg.pl
2004-07-10 11:31:42 +00:00
rocky
ab9460c3f4 Hoist some more common image routines and make image drivers look more
common. In particular we now have a "cue", "source", and "access-mode"
parameters defined even when "cue" and "source" are the same as in NRG.

The _img_private_t's for the image drivers are now more similar if not
the same.

Some memory leaks when there are error conditions in opening image
drivers have been fixed.
2004-07-10 11:06:00 +00:00
rocky
13af656fea Hoist common track mode, disk format and disk flags into sector.h
Hoist track information into image.h
2004-07-10 02:17:57 +00:00
rocky
56e40df160 mcn -> psz_mcn and other psz variables.
bincue.c: a little closer to getting cuetools parse_cuefile useable.
2004-07-09 02:46:42 +00:00
rocky
c7d1e955e3 Note the existence of CD-TEXT even if we don't know how to parse it yet. 2004-07-01 09:50:59 +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
bc484f1719 Fix bugs in merging with extractnrg.pl. 2004-06-18 22:55:24 +00:00
rocky
c287dcad09 Add more info from extractnrg.pl 2004-06-14 09:52:17 +00:00
rocky
375de2275f Typo. 2004-06-02 00:35:32 +00:00
rocky
33be1e3ebf Some variable renaming.
Also less pervasive assumption that the first track is 1.
2004-06-01 11:15:58 +00:00
rocky
2c272e7e90 Break out file NRG format structures into a header. 2004-06-01 10:47:37 +00:00
rocky
dae18fe88f Make use of return code from parse_nrg()
A mode1/2 fixup.
Some small code reorganization.
Closer to being able to parse without opening.
2004-06-01 10:43:23 +00:00
rocky
a311ef0716 Merge more information in from extractnrg.pl 2004-05-31 14:16:34 +00:00
rocky
1abdc2e353 Better DAOI and DAOX information based on extractnrg.pl. 2004-05-31 04:00:01 +00:00
rocky
42b16ab189 Improve slightly (or possibly break slightly) based on information
from extractools.pl.
2004-05-26 06:27:03 +00:00
rocky
cb9db0a7d5 Allow more freedom in specifying access mode.
Image drivers now have an "image" access mode.
2004-05-13 01:50:10 +00:00
rocky
3f6cba2b0a - Redo types of lsn and lba to allow negative values. Should model MMC3
specs. Add max/min values for lsn.
- More complete MMC command set
2004-05-11 02:15:42 +00:00
rocky
51d132a457 Check some validity of NRG image. More will come later.... 2004-05-09 16:52:20 +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
a664ea08b0 Regularize and I hope simplify names a bit more.
image/*.c: (bogus) eject media now frees resources
bincue.c: missing default_devices routine in function initialization table.
2004-04-25 14:48:17 +00:00
rocky
20974d4568 CDIO_DRIVE -> CDIO_DRIVE_CAP 2004-04-25 14:07:23 +00:00
rocky
1bf5f1e464 Regularize naming convention of static routines a little bit. 2004-04-25 01:19:58 +00:00
rocky
52e0a80503 lib/*c, include/cdio/*.h: Add more drive capability info
util.{c,h}: common routine for printing capbilities
cd-info.c: use above.
*.right: update for capability display of above

cd-drive.c: new program to show drive capabilities
2004-04-25 00:46:34 +00:00
rocky
a516b22565 image/common.h -> image_common.h. I'd rather switch than fight. I
still hate automake.
2004-04-23 02:18:07 +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
fb040eada5 Remove more memory leaks caught by valgrind. 2004-03-20 22:46:56 +00:00
rocky
af2c12ddc1 regularize variable names mode{1,2}_form2 -> b_form2 2004-03-06 18:22:07 +00:00
rocky
7e58a526a3 Fix up mode1 sector reading. 2004-03-06 03:22:50 +00:00
rocky
281585e49d *: Create OS-specific directories.
bincue.c: remove more bogus behavior in mode1/mode2 sector reading.
2004-03-05 12:32:45 +00:00