Commit Graph

192 Commits

Author SHA1 Message Date
rocky
780afbabfd Various portability fixes when libiconv isn't available or is broken. 2004-10-24 03:29:31 +00:00
rocky
a492bb4ab6 First cut at Joliet support for ISO 9660 images. More work is needed
to integrate this into CD reading.
2004-10-23 20:55:08 +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
b946c03c2a small formatting change. 2004-10-10 20:36:10 +00:00
rocky
ee39520dfc Change some void * return types to what they really are. The void *
was helping to propagate the mistake of not
exporting CdioList in ds.h.  CVS:

----------------------------------------------------------------------
include/cdio/iso9660.h lib/iso9660_fs.c CVS:
----------------------------------------------------------------------
2004-10-09 23:20:52 +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
82e74387c6 cdtext.h: minor doxygen improvemtn
others: make "make distcheck" work again.
2004-09-05 13:03:46 +00:00
rocky
d9c63df6ce Changes to make doxygen doc better. 2004-09-04 23:49:47 +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
91af2a7906 cd-info.c: bug in DVD test.
sector.h: redo the way the dvd and cd tests work. Isn't strictl necessary, but
   this is has fewer implicit dependencies.
2004-08-30 01:01:14 +00:00
rocky
1703e7dc00 sector.h: add routines for determining if discmode is DVD or CD.
cdtext*: adjust for bigendian or not. Check for double-byte characters.

cd-info.c: new option --dvd. Don't attempt to understand DVD unless this is
           given.
2004-08-30 00:26:59 +00:00
rocky
19991ded7b add psz_ to hwinfo type.
_cdio_linux.c: go back to using SCSI MMC drive cap routine.
2004-08-27 11:53:38 +00:00
rocky
945338288f Add constant variable to indicate which OS driver we've got in build. 2004-08-27 11:23:40 +00:00
rocky
7454e4375e Add a couple of routines to pass back the driver used in getting a
drive.  Speeds up a little the task of opening the drive. Is now used
in cd-drive and cd-info.
2004-08-27 04:17:08 +00:00
rocky
758f954e1f Expose hwinfo call as a cdio command. It was SCSI-MMC. This may help
on OSX.
2004-08-27 02:50:13 +00:00
rocky
993ec7356f Add a couple of "features".
freebsd_ioctl.c: hopefully less-erroneous MCN extraction.
2004-08-10 02:29:46 +00:00
rocky
1fb9bce71d Add more feature codes. 2004-08-07 03:25:25 +00:00
rocky
18411a8764 util.*, cd-drive: Add feature listing to cd-drives.
sample10.c: More feature information printed

scsi_mmc.h: more doxygen comments about features.
2004-08-07 01:48:36 +00:00
rocky
331c244177 small changes. 2004-08-06 22:13:14 +00:00
rocky
32a4b63410 Add more feature definitions. 2004-08-06 22:08:07 +00:00
rocky
50da1b5c16 Fill out GET_CONFIGURATION - add some feature info and return types. 2004-08-06 11:55:16 +00:00
rocky
b7486e83e9 Comment corrections. 2004-08-06 00:55:14 +00:00
rocky
03562c49b2 Add GET_CONFIGURATION. 2004-08-01 11:29:13 +00:00
rocky
b1616ea6d5 Add scsi_mmc_get_hwinfo. 2004-07-31 07:43:26 +00:00
rocky
dc3073165c Add lengths of hardware vendor, model, and revision. 2004-07-29 05:31:27 +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
e606f025a0 Add discmode to string array. Simplifies some code a bit. 2004-07-28 22:03:35 +00:00
rocky
5c26700f3e Make setting read lengths more precise (and correct). 2004-07-28 11:45:21 +00:00
rocky
7716188c38 Make sure milliseconds get converted to seconds if needed.
Some function renaming, and a typo in a DVD book type.
2004-07-28 01:09:59 +00:00
rocky
c0c0077f3d Yet more alternate "_generic" to simplify CD-ROM drivers (like all of them
except Windows) were there is in fact only one MMC passthrough command.
2004-07-27 02:45:16 +00:00
rocky
db337e5665 More consolidation of code by adding routines to scsi_mmc. 2004-07-27 01:06:01 +00:00
rocky
50532e7025 Try to make get_dvd_physical a common routine. (Haven't tested yet.) 2004-07-26 03:58:25 +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
39ed5a3421 Typo 2004-07-25 16:38:05 +00:00
rocky
457035e939 Add dvd.h to list of includes. 2004-07-25 16:35:29 +00:00
rocky
1166763851 Typo 2004-07-25 15:46:40 +00:00
rocky
62b7ad9eaf Definitions for DVD access. 2004-07-25 11:18:05 +00:00
rocky
f7348fbddc Changes to facilitate DVD detection. 2004-07-25 03:17:47 +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
46afdac583 Formatting and small name change. 2004-07-23 11:29:49 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +00:00
rocky
69da7d3a65 Add more SCSI MMC-3 commands 2004-07-21 11:07:27 +00:00
rocky
1ff6a82d86 Correct discmode comments. 2004-07-21 10:29:00 +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
7e18d89c8a Add common defines for some subchannel commands, and use them. 2004-07-17 15:31:00 +00:00