Commit Graph

1055 Commits

Author SHA1 Message Date
rocky
1949a54ec9 _cdio_osx.c: add getting hw info. Get some read/write capabilities and
disc info.

*generic*: split off CD discmode classification so it can be used by
OSX

cdio: env -> p_env
2004-08-28 09:15:41 +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
c495bfdfa7 Add p_ where appropriate. 2004-08-27 11:36:45 +00:00
rocky
56c60c8ce1 add p_ where appropriate. 2004-08-27 11:34:44 +00:00
rocky
ae8bb2f892 cd_drives -> ppsz_cd_drives 2004-08-27 11:32:12 +00:00
rocky
7609605f3f *** empty log message *** 2004-08-27 11:28:03 +00:00
rocky
c4333fa4e3 filename typo: .cvignore -> .cvsignore 2004-08-27 11:26:30 +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
8610733f12 What's up. 2004-08-27 11:22: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
8b61fa9ea5 Use generic SCSI MMC code for getting drive capabilities. 2004-08-27 04:12:29 +00:00
rocky
34d045e2be Wrong access for setting drive capabilites to unknown. 2004-08-27 02:59:25 +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
fb3d481d96 scsi_mmc.c: more aggressive about getting drive capabilites. Try to
get length first. Also try CAPABILITIES_PAGEs as well as ALL_PAGEs.
2004-08-27 01:24:40 +00:00
rocky
66b7f9c003 Devices list fixed, compilation error and give up on drive capabilities for now 2004-08-27 00:03:05 +00:00
rocky
4ba0be9187 Show status unknown when it is unknown 2004-08-27 00:02:10 +00:00
rocky
df2eb98bad Small variable name changes 2004-08-26 10:44:38 +00:00
rocky
86903bbb75 Small formatting changes 2004-08-26 10:43:36 +00:00
rocky
7161a0da11 Save more IOkit information in private structure and separate this
from reading TOC.

Many small changes that I hope will eventually get us closer to
getting more drive and CD information although for now it doesn't help
all that much.
2004-08-22 00:43:07 +00:00
rocky
eacbfd3f9d Partial OSX improvements -- more work is needed. 2004-08-19 04:01:34 +00:00
rocky
1c08b4e69b Another attempt at a pkgconfig bug workaround 2004-08-19 02:50:35 +00:00
rocky
34749d84ae Fixes for making libcdio work with pkg-config on Darwin when linking
vcdimager and when linking just libcdio. From Steven M. Schultz:

  I blew a couple minutes tinkering with libcdio.pc and found that
  manually adding a quote character (not even a matched set of quotes!)
  around the second -framework was enough.

  What works for now is manually editing libcdio.pc after it's been
  installed:

   Libs: -L${libdir} -lcdio  -lm  -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,IOKit

  to:

   Libs: -L${libdir} -lcdio  -lm  -Wl,-framework -Wl,CoreFoundation "-Wl,-framework" -Wl,IOKit

  is enough to get vcdimager compiled and linked.

  Appears that the thing to do is somehow get the quotes into
  libcdio.pc but not into $LIBS - or something like that at any rate.
2004-08-19 01:12:27 +00:00
rocky
df540d7da5 Make sure pp_scsiTaskDeviceInterface is initialized. The code should
probably be reorganized better for this. For now this probably works.
2004-08-18 11:31:58 +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
8ddd3bf19f Initialize gen.toc_init 2004-08-16 01:47:49 +00:00
rocky
499f3f1dbe Forgot to init CD-Text variables. 2004-08-16 01:04:26 +00:00
rocky
c8000d60e9 _cdio_osx.c: first attempt at issuing general SCSI-MMC passthrough command.
others: small changes.
2004-08-16 00:52:53 +00:00
rocky
ff65f7133f First attempt at getting drive capabilities. 2004-08-15 16:15:40 +00:00
rocky
887a3254c5 Compilation fix. 2004-08-15 13:53:03 +00:00
rocky
cf7b5e9bf4 Merge common cdtext code into image drivers. 2004-08-13 13:04:37 +00:00
rocky
7bba78007e Compilaton fixes. 2004-08-13 11:54:15 +00:00
rocky
c5c0813ded Add instructions for CVS. 2004-08-12 09:22:23 +00:00
rocky
b9da06c3b5 Now that all of the generic cdtext code is in place, it is trivial to add CD-Text support to FreeBSD. 2004-08-10 12:14:45 +00:00
rocky
d1ea5b8e5e typo. 2004-08-10 12:09:20 +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
f744916699 We now have 10 samples so it's sample?? as well as sample? 2004-08-10 03:44:31 +00:00
rocky
72409ca899 Compilation fixes from cd-text breakage. Also make style more like
the others.
2004-08-10 03:37:16 +00:00
rocky
2da73da448 compilation fix 2004-08-10 03:10:46 +00:00
rocky
da7098b2af More correct output and add additional capability lines 2004-08-10 03:10:04 +00:00
rocky
e39890f7c8 1st attempt to reduce duplicate CD-Text code. (It works on GNU/Linux)... 2004-08-10 03:03:27 +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
ac7276d325 Pedantic alphabetization. 2004-08-08 14:55:35 +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
08e99d720d Compilation fixes. 2004-08-08 00:20:21 +00:00
rocky
2ed97633f7 Make like the others. 2004-08-07 23:17:36 +00:00
rocky
87f0c9334f Add b_cdtext_init and b_cdtext_error to generic structure. If we
can't read cdtext once, mark as an error and don't try to read again.
2004-08-07 22:58:51 +00:00
rocky
14b373d90e Add section to Give complete list of example programs. A few small
updates, spelling corrections, typo is other places.
2004-08-07 11:27:03 +00:00