Commit Graph

70 Commits

Author SHA1 Message Date
rocky
a8f67b6163 Classified one more disc mode perhaps. Variable name change and
probably clarification.
2004-12-17 04:57:14 +00:00
rocky
9a75dca071 Hoist common "portable" definitions into portable.h
NEWS - rearrange.
2004-11-07 21:13:10 +00:00
rocky
64f2ad383d Mostly portability issues from or inspired by mog's changes for XBOX.
image/*.c: initialize func structure to 0 (NULL).

include/cdio/*.h: add "extern C" for C++ compilations where
appropriate.
2004-10-31 06:07:26 +00:00
rocky
8b895d0ba1 Joliet filename detection for CD images is now done.
Various valgrind-caught errors fixed
Output changed: we no longer print root block number.
(It is still shown when XA attributes are printed.)
2004-10-26 01:21:05 +00:00
rocky
55de6dfdeb First attempt to extent Joliet to CD reading portion. 2004-10-24 23:42:39 +00:00
rocky
b80d83f07b iso9660.h, iso9660_fs.c: Add iso9660_ifs_is_xa() a routine to
determine if an iso image has XA attributes.

bytesex.h and bytesex_asm.h are now public. (Down the line should use
glib though.) Package  has been revised to the move.

iso-info.c: shows XA attributes what that it is available.
2004-10-22 01:13:38 +00:00
rocky
0dd6c21281 Make ds.h public. It should have been that way since it *is* public.
Eventually though we'll redo things using glib and then ds.h will get
removed.
2004-10-09 03:20:28 +00:00
rocky
40332db672 Add get_hwinfo functions in image drivers. 2004-09-04 00:06:50 +00:00
rocky
c1905e6879 configure.ac: now in 0.71cvs
*.c: lint-like changes. Tested on Sun's SUNPRO cc compiler.
     Removed feild initialization lingo (even if it is C99).
2004-09-03 23:20:11 +00:00
rocky
3d6d01ddbd Set toc_init even on image drivers. Never know when the could will
start needing this, but may as well do now.
2004-08-16 02:04:08 +00:00
rocky
cf7b5e9bf4 Merge common cdtext code into image drivers. 2004-08-13 13:04:37 +00:00
rocky
0d8a3e2a82 Tighten code by putting more generic routines in cdio_generic:
to get first track number and number of tracks
  to get discmode

everybody now has gen.i_tracks and gen.i_first_track.

test/* format of output changed yet again.
2004-07-29 02:16:20 +00:00
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
0c36493f8d Expand get_cdtext to include a track number. 0 = disc info. 2004-07-17 02:18:26 +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
b525effb95 Pull out mmssff_to_lba routine and fix bug when in error reporting
when frame >= 100.

Add msf3_to_lba and use that where possible (win32_ioctl.c for
example).
2004-07-10 01:21:19 +00:00
rocky
3ee48c691c bincue: check catalog string for validity.
cdrdao: slightly more precise error messages for CATALOG.
2004-07-09 20:48:05 +00:00
rocky
1fc8db0ccf Forgot to close file descriptor. Some variable name changes to make
more consistent with variable-name conventions.
2004-07-09 10:27:17 +00:00
rocky
2ef8f54043 Now uses cuetools-based cue parsing. A more complete job is now
done.

Cue files are completely parsed for validity in cdio_is_cuefile.

Remove sector 2336 (PSX) hack. It's now gotta be in the cue file.

Get a c(l)ue. If you don't have one, we're no longer going to try to
fake one up (which we did poorly anyway.)
2004-07-09 10:12:15 +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
75f04f119b Fill in a tad more. In particular the mmssff_to_lba routine. 2004-07-09 01:23:46 +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
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
bf964b72fd Add boilerplate Makefiles for convenience 2004-06-20 15:35:31 +00:00
rocky
e1808fb407 Lint-like things.
Add X-BOX detection courtesy of the xmbc project.
2004-06-19 19:15:15 +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
11f7fbe9f3 Avoid subtraction of unsigned numbers. 2004-06-01 11:45:35 +00:00
rocky
a9f1ebe431 Bug in conversion logic. 2004-06-01 11:43:57 +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
2a54d504c0 MSWindows/*: get access mode working better. ASPI support is faulty though
freebsd.c: it's "ioctl" not "IOCTL";
cdrdao: it's cdrdao, not "toc"
cd-info: slightly better error message?
2004-05-16 13:33:26 +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
ce3de314d8 More error message fixups. 2004-05-08 22:02:28 +00:00
rocky
01b7eee482 freebsd_ioctl.c: Erroneous data size. Thanks again to Heiner.
toc: better error messages and more tests.
2004-05-08 20:36:01 +00:00