Commit Graph

60 Commits

Author SHA1 Message Date
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
52424fda4d Revert last change. Need to return char * for MCN. Also replace that
magic number 100 with MAX_TRACKS+1.
2004-06-27 16:36:38 +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
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
238b74ab7f fewer error exits in drivers. Instead, a failure code is returned. 2004-06-25 21:10:36 +00:00
rocky
eca77ca5ce Comment fixes. 2004-06-06 11:44:51 +00:00
rocky
8d0e6cd56e Doc fix. 2004-06-06 11:38:33 +00:00
rocky
c18f5a70b3 Remove another first_track = 1 assumption. 2004-06-06 11:30:48 +00:00
rocky
eed4e28a19 Back off of testing for unread TOC. Probably a good idea to do lazy
TOC reading.
2004-06-06 11:25:13 +00:00
rocky
0bb7fadf26 More work on removing assumption that first_track is 1. 2004-06-06 10:50:55 +00:00
rocky
4ebd2a09f0 Minor coding changes. 2004-06-03 08:50:30 +00:00
rocky
5e2642af4b Remove some of the bogus assume 1 is first track.
Renamings: env -> user_data
	   _obj -> env
2004-06-02 00:43:53 +00:00
rocky
376e021218 Hopefully improve names. "user_data" comes from user. "env" an
environment is really what this is. "obj" is just to vague.
2004-05-31 12:29:09 +00:00
rocky
92ab8ff36d Remove some of the bogosity in assuming the first track starts at 1.
(Probably will be useful on multi-session CD's).
2004-05-27 10:58:11 +00:00
rocky
cb7c0e870a Go over FreeBSD code based on output from Heiner.
Hopefully 3 bugs are fixed:
  - we get the leadout track now, no core dumps
  - MSF reporting is corrected
  - track format and mode

_cdio_linux.c: use cdio #define rather than GNU/Linux one.
2004-05-13 04:32:12 +00:00
rocky
aab600b46a Make scsi_mmc.h public. 2004-05-10 03:28:51 +00:00
rocky
a41b31b805 _cdio_freebsd.c: is now in FreeBSD (with some cam code)
_cdio_linux.c - minor name changes.
2004-05-06 01:21:29 +00:00
rocky
7f10dab1a1 Small fixes. 2004-05-05 02:47:18 +00:00
rocky
8c0d08b480 Don't give "source not a device message" for uniformity with other drivers. 2004-05-04 01:57:23 +00:00
rocky
e853206824 Compilation fixes and modulization improvements. 2004-04-30 21:36:53 +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
6b9bc59426 More procedure canonicalization, some #defines added and used. 2004-04-26 07:54:47 +00:00
rocky
3ecd485a7d More regularization of names. Warning: untested on freebsd and osx. 2004-04-25 15:41:26 +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
1bf5f1e464 Regularize naming convention of static routines a little bit. 2004-04-25 01:19:58 +00:00
rocky
b6a67c8d94 image/common.c, Makefile.am: common image routines.
src/cd-info.c, *.right: Now show file images under "drive capability"
bincue.c/nrg.c: report file image "drive capability"
2004-04-23 01:01:35 +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
6fad463e33 mode{1,2}_form2 -> b_form2 2004-03-07 02:42:22 +00:00
rocky
63464c508c Not sure why we had *exclusive* access just to see if a CD-ROM is
around.  Was causing failure to discover CD-ROM drives.
2004-03-07 01:40:00 +00:00
rocky
7b44195c51 GNU/Linux mode1 sector bogosity reduction. (Could be greatly improved.) 2004-03-06 04:49:26 +00:00
rocky
ad2f334b7b More memory leaks found by valgrind. 2004-02-21 17:18:04 +00:00
rocky
c090e7ee81 Fix some of the memory leaks and uninitialized variables which valgrind
notices.
2004-02-07 02:40:20 +00:00
rocky
a91317ae10 Use bool where appropriate. 2003-10-03 01:26:52 +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
3c5888e31d Replace techno-wizard message "Get MCN" with more layman "Media Catalog Number" 2003-09-27 23:29:29 +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
9056ac6275 Clean up mmc code a bit 2003-09-19 04:37:31 +00:00
rocky
3b2e52e8fc Put more into scsi_mmc.h 2003-09-18 13:31:07 +00:00
rocky
a0c364a5fb Don't turn a LSN into an LBA when reading audio. 2003-09-17 12:16:42 +00:00
rocky
63af058973 Use new common scsi_mmc.h. 2003-09-14 09:34:17 +00:00
rocky
833bc3d21d Note TOC's initialized so we don't reread. Add some int's to unsigned. 2003-09-01 15:11:36 +00:00
rocky
33acb91f16 Wasn't noting that we read TOC so we were re-reading it every time. 2003-09-01 02:02:03 +00:00
rocky
c7703d2fd1 Small comment change. 2003-07-27 22:52:22 +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
8b22196efe Bug in eject: need to close internal file descriptor before ejecting.
eject interface now nulls cdio pointer after a sucessful eject.
2003-05-16 07:18:27 +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