Commit Graph

41 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
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
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
e39890f7c8 1st attempt to reduce duplicate CD-Text code. (It works on GNU/Linux)... 2004-08-10 03:03:27 +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
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
db337e5665 More consolidation of code by adding routines to scsi_mmc. 2004-07-27 01:06:01 +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
2040c4abf7 Wasn't allowing call of new scsi_mmc_run_cmd. 2004-07-22 11:00:59 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +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
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
5eb83082eb Add CD-TEXT to MS-Windows ASPI driver. (The first real CD driver!)
In the process we've had to remove "const" from get_aspi.
2004-07-13 03:45:15 +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
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
65fd7d3b43 Regularize MMC commands more. Add ALLOW_PREVENT_MEDIUM.
Start CDTEXT. _cdio_linux.c: better at reporting errors.
2004-07-08 01:27:57 +00:00
rocky
e21255ec1a Reduce cut and paste - add common routine, to _cdio_generic.c:
cdio_read_mode1_sector.
2004-06-26 00:39:00 +00:00
rocky
12a6d32d95 Fix prototype mismatch. 2004-05-27 01:11:50 +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
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
12762d2d7c *.{c,h}: add cdio_get_drive_cap to determine what kind of CDROM device
we've got.

README.libcdio: suggest stonger making a separate package for cd-info
configure.ac: we are in 0.69cvs now
2004-04-22 03:24:38 +00:00
rocky
98b9f3719c Work on mode1 reading. Remove some of the bogusity in cdio.c and bincue.c
win2, now works!
2004-03-05 04:23:52 +00:00
rocky
6952d172e7 More valgrind-found memory leaks. (More to come...) 2004-02-07 18:53:02 +00:00
rocky
1e84cacbb4 Fill out autoscan devices/images to image drivers. API is probably
closer to more complete.
2003-09-30 03:26:11 +00:00
rocky
21039b8f90 Closer to autoscan working better. globbing for *.nrg in NRG.
Will probably do likewise in bin/cue when NRG is working.
2003-09-29 02:56:22 +00:00
rocky
083f472570 First-cut to auto-scan for device capabilities 2003-09-28 17:14:20 +00:00
rocky
6450be398b Add get_mcn, although it really only works on GNU/Linux right now. 2003-09-25 09:38:15 +00:00
rocky
dd05f2e6ad Change interface for read_audio_sectors. 2003-09-20 12:34:02 +00:00
rocky
8f65e78167 Check and include config.h so includer's don't. 2003-09-18 13:40:54 +00:00
rocky
597cef4818 MIN_DRIVER, MIN_DEVICE_DRIVER, MAX_DEVICE_DRIVER -> CDIO_...
Add CDIO_MAX_DRIVER (distinct from CDIO_MAX_DEVICE_DRIVER

cdio.c (cdio_open): was only scanning devices. Change to scan
disk image files as well.
2003-06-22 22:41:29 +00:00
rocky
67051b0f71 Make GNU/Linux smarter about finding a default device -- code sort of from SDL.
Better error checking all around.
2003-06-12 04:46:27 +00:00
rocky
1e1d7f5211 Add customized routines for determining if whether a string refers to
a device or not.
2003-06-07 16:48:33 +00:00
rocky
77a068f0c7 Add field for and save driver id used. 2003-05-24 15:43:06 +00:00
rocky
adfb8564c9 tests -> test
All public includes are included via #include <cdio/....h> rather than
#include "....h"

(removed -I $top_srcdir/include/cdio)
2003-04-22 12:09:08 +00:00
rocky
aa9d1b517f get_default_device with NULL will get device *without* trying to open
cd. Add read_audio call.
2003-04-10 04:13:41 +00:00
rocky
8c7ea5421b Add opaque CdIoDataSource type and generic free routine for
stream-based drivers (nrg, bincue, network).
2003-04-07 11:31:19 +00:00
rocky
ecb98d7e8f Close go getting simple read working. Not completely correct, but close. 2003-04-04 05:15:33 +00:00
rocky
62d12714b1 More common routiens and structures moved to cdio_generic.c or
cdio_private.h respectively.
2003-03-30 13:01:22 +00:00
rocky
f488280282 Add simple (non-mode2) read/seek.
_cdio_generic.c: place to save common driver routines
add cdio_get_track_sec_count.
2003-03-29 17:32:00 +00:00
rocky
d4d82912da Initial revision 2003-03-24 19:01:09 +00:00