Commit Graph

358 Commits

Author SHA1 Message Date
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
4ba0be9187 Show status unknown when it is unknown 2004-08-27 00:02:10 +00:00
rocky
6725196b0f lib/*.c: create and use get_cdtext_generic.
lib/generic.h: prototypes for _cdio_generic.c (move out of _cdio_private.h)

example/sample10.c, src/util.c: small print format improvement
2004-08-10 11:58:14 +00:00
rocky
4f0dd2822c Ooops. Debug info creapt in. 2004-08-10 03:47:57 +00:00
rocky
f989d329a7 Compilation fixes for Win32 and cd-text breakage. 2004-08-10 03:44:55 +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
322487ca91 Print hardware serial number if given by feature. 2004-08-08 03:11:11 +00:00
rocky
547fbb963f Add more feature info. 2004-08-08 03:03:10 +00:00
rocky
5c84847b7f Bug: listing wrong drive capabilities. Was using wrong source_name. 2004-08-07 11:26:01 +00:00
rocky
c10819c3e6 FreeBSD and gcc < 3.0 fixes
Some variable name changes to match style.
2004-08-07 09:42:34 +00:00
rocky
5f3ed4ee3a Add power management feature display. 2004-08-07 03:37:46 +00:00
rocky
1d727d1adb Add more feature descriptions. 2004-08-07 03:24:45 +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
db5ed09ce8 win32.c: initialize capabilities before setting them.
util.c: typo was using read parameter for determining CD-RW writing.
2004-08-06 14:27:33 +00:00
rocky
dacdcc0eb0 cd-info.c: should not try to print out MCN for DVD's - they don't have any
such thing.

util.c: wasn't reading right/write parms when showing write capabilities.
	now also show DVD+RW and DVD-RW capabilities.
2004-08-06 00:53:58 +00:00
rocky
b1616ea6d5 Add scsi_mmc_get_hwinfo. 2004-07-31 07:43:26 +00:00
rocky
e606f025a0 Add discmode to string array. Simplifies some code a bit. 2004-07-28 22:03:35 +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
fbb7806979 MSWindows: add DVD type determination.
cd-info.c: poor disc-mode error message string
2004-07-25 17:32:19 +00:00
rocky
bc90454ca4 Some weird problem when --no-cddb and libcddb was not around. I'd
rather switch than fight it.
2004-07-25 11:32:33 +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
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
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
c4cd69693c Check that mandatory options are mandatory and note in help where they
are.

Error messages gone over a little.

Closes bug #9675
http://savannah.gnu.org/bugs/?func=detailitem&item_id=9675
2004-07-17 16:47:37 +00:00
rocky
0c36493f8d Expand get_cdtext to include a track number. 0 = disc info. 2004-07-17 02:18:26 +00:00
rocky
ca69284de2 Add cdtext display to cd-info and adjust regression tests accordingly.
cd-read.c: don't try to print null strings.
2004-07-16 21:29:24 +00:00
rocky
275e0da305 Print out more of the capabilities. 2004-06-27 16:37:34 +00:00
rocky
373fe1f196 Add getting UDF label and major/minor version numbers.
cd_types.c: also replace unsafe use of sprintf with strncpy.
2004-06-23 09:28:02 +00:00
rocky
c9ab763671 More (but not all) UDF stuff from the Xbox project. 2004-06-23 03:56:25 +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
b6fe547937 More information about ISO 9660 images is printed. 2004-06-19 10:38:07 +00:00
rocky
a3de80d0ae iso9660_iso_... -> iso9660_ifs_... 2004-06-19 00:15:44 +00:00
rocky
f126d236aa iso9660*.{c,h}: Add PVD read for ISO 9660 images.
iso-info now shows this info.
2004-06-19 00:10:23 +00:00
rocky
53b70ca566 Go back to 8-place MM:SS:FF. 2004-06-12 17:30:03 +00:00
rocky
a5d03e58ba Make sure source_name a malloc'd, so we can uniformly free it when
not needed.
2004-05-31 14:52:04 +00:00
rocky
59a3a3af4e Handle error reporting with null source correctly. 2004-05-31 12:19:35 +00:00
rocky
74005ffae2 Strive to make source_name always a malloc'd variable (so it can
always be free'd).
2004-05-31 04:00:54 +00:00
rocky
3eea3968c0 Put LIBPOPT_CFLAGS after local include in case LIBPOPT has headers common
to those in LIBCDIO_CFLAGS.
2004-05-27 02:46:17 +00:00
rocky
95546002d5 Add --hexdump and --no-hexdump options. We now can hexdump to a file and
dump bytes stdout (which may be useful in a pipe).
2004-05-26 00:52:53 +00:00
rocky
a28d909009 Test variable is not already free before freeing. 2004-05-24 23:28:05 +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
21a5f21a9a Ouptut of LSN has one more place just to be sure.
cd-info.c: use new msf_to_str routine.
2004-05-09 17:05:34 +00:00
rocky
9e816e126c Add cd-drive. 2004-05-06 12:06:52 +00:00
rocky
f04f14c312 Add some cdrdao image reading support from Svend S. Sorensen's
cuetools

cdio.c: remove some complicated and extraneous code for auto-driver
detection.
2004-05-04 02:06:48 +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
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