Commit Graph

260 Commits

Author SHA1 Message Date
flameeyes
5ef1d37f44 Don't put two strcmp() calls in bodyless if costructs when building the release version. Use -DTODO in CFLAGS to get the warning again. 2006-02-27 10:27:39 +00:00
flameeyes
af487f92a3 Don't check for an unsigned value to be >= 0. 2006-02-27 10:23:52 +00:00
flameeyes
34bdf67d45 Use preprocessor's #error instead of adding invalid code, makes the error more verbose and waste less time (as it stops during preprocessing instead of compiling). 2006-02-27 09:48:55 +00:00
rocky
f54b63d068 Was accessing outside of legal range. Addresses bug #15787 Thanks to
demo-n.
2006-02-18 22:47:41 +00:00
rocky
489d714f89 Comment change. 2006-02-18 19:37:55 +00:00
rocky
6cbdfae3e2 scsi_mmc_direction_t -> cdio_mmc_direction_t 2006-02-18 19:36:07 +00:00
rocky
da74e72b38 image/* Wrong sizeof.
mmc: remove some deprecated things.
2006-02-13 11:00:53 +00:00
rocky
695091068b Replace yet another set of #defines with an enum. 2006-02-13 08:44:17 +00:00
rocky
2ed5e267c9 Use strncopy rather than strcpy in get_hwinfo. Make sure all strings have
null byte at the end.
2006-02-13 01:43:29 +00:00
rocky
cccc78a064 Put in a much more stringent NRG image test. This means that for now
we won't require the .NRG extension.
2006-02-12 10:48:11 +00:00
rocky
22d1c0dfa6 Fix bugs on accessing outside of string. Patch thanks to Diego
'Flameeyes' Pettenò. And he cleaned up and shortened the code too!
2006-02-12 05:32:28 +00:00
rocky
59e83162e5 bincue.c: was using NRG default devices!
cd_types.c: declare variable so we pick up debug info.
2006-02-10 18:04:17 +00:00
rocky
d25c11fbb8 cdio_driver_return_code_to_str -> cdio_driver_errmsg 2006-02-02 04:37:29 +00:00
rocky
3861e929ef Fix bug in is_device when driver_id = DRIVER_UNKNOWN or DRIVER_DEVICE 2006-02-01 00:45:45 +00:00
rocky
68d35cea80 Now check to see if we have config.h *AND* it hasn't been included before. 2006-01-23 20:48:11 +00:00
rocky
4c77464d81 config.h now seems to get included. 2006-01-23 20:31:11 +00:00
rocky
c89687d87f Had uninitialized set_speed and set_blocksize opts caused core dumps
if called.
2006-01-21 11:04:30 +00:00
rocky
5ac663c6a2 Add cdio_driver_return_code_to_str() to give a string interpretation
of a driver return code.
2006-01-15 01:26:50 +00:00
rocky
088c1e62a9 Document behavior of cdio_open* and media_eject when no device given. 2006-01-14 10:10:34 +00:00
rocky
8bf123a750 More enumerations.
*.c: add "debugger" enumeration variables.
2006-01-14 09:45:44 +00:00
rocky
8cc672c305 Remove GCC 4 warning about ignored "packed". 2006-01-14 08:58:25 +00:00
rocky
d035ad1221 add read_sector{s}
cdtext.h: Small typo.
2005-11-10 00:44:40 +00:00
rocky
c2c69389cd Add cdio_eject_media_drive. 2005-11-07 07:54:41 +00:00
rocky
6f81e9252b Add interface to eject CD-ROM by device name.
eject.c: new routine to test/show this.
example/*.c iso2.cpp: Note in comment allowance of an optional argument.
2005-11-07 07:44:00 +00:00
rocky
2f8e8b9529 Was giving a failure status on eject when it succeeded. The failure
was because ioctl(fd, BLKRRPART) didn't succeed. Turn this into a
cdio_info warning instead.
2005-11-07 07:41:29 +00:00
rocky
c74242e942 Use MMC routine for reading data blocks. At leat on XP home it seems to work
better than generic read which is a cooked read.
2005-10-28 12:43:30 +00:00
rocky
7f4e8140ae Turn one more set of #define into an enum 2005-10-21 11:27:09 +00:00
rocky
fa0848bf90 Try to regularize naming better. More mmc_ -> cdio_mmc_
Add more debug variables to be able to get at enum values in a debugger.
2005-10-21 11:13:54 +00:00
rocky
d12f4d6489 All multiple-block reading routines now return success when asked to
read 0 blocks and the lsn's are valid. Idea suggested by Peter J. Creath.
2005-10-07 07:15:19 +00:00
rocky
14811c97db Two patches from Peter J. Creath
Fix bug in handling arithmetic with unsigned numbers
  Return success if reading 0 audio blocks.
2005-10-07 00:06:45 +00:00
rocky
16bdbf2615 Remove libpopt.
cd-drive, cd-info: some source option bug fixes
osx.c: bug in duplicate free in add-device

Patches and bug fixes courtesy Peter J. Creath
2005-10-05 09:48:11 +00:00
rocky
b4994b8c3f Remove double free of str_bsd_path. Thanks to Peter J. Creath for
finding/fixing.
2005-09-30 00:01:09 +00:00
rocky
3a1145614b include <stdbool.h> only if not C++. 2005-09-17 20:57:19 +00:00
rocky
0554f105a5 Remove warning: "use of cast expressions as lvalues is deprecated"
Reports have it that gcc 4 doesn't tolerate this.
2005-08-28 22:40:19 +00:00
rocky
7e64f29d05 Some small type and variable name changes. 2005-07-23 22:24:04 +00:00
rocky
342d42412a Ooops -- syntax error. 2005-07-23 22:05:29 +00:00
rocky
a42209123c Doc changes. 2005-07-23 21:39:18 +00:00
rocky
6029b6c3d7 Patch from Diego 'Flameeyes' Pettenò to eject_media_freebsd_ioctl():
Allegedly this works better than the CAM mode eject; CAM gets the error
"Device not ready" when trying to eject an empty CD-ROM drive.

We make use of an already open file descriptor to the CD-ROM instead
of opening a new one (else we have two file descriptor open, so when
it launch the ioctl() to eject the device it results busy because of
the other fd).

Also corrects the documentation comment about the return value.
2005-07-23 21:36:54 +00:00
rocky
10ffeb8964 Conservative setting for library. 2005-07-07 06:54:48 +00:00
rocky
8f154dc75d Remove gcc 4 warning 2005-07-07 06:53:04 +00:00
rocky
5d9dd72dcb Correct test caught by gcc 4.0 2005-07-07 06:51:58 +00:00
rocky
3b0b52ac52 Allow the MMC timeout to be adjusted by the application. 2005-06-26 18:29:49 +00:00
rocky
bd0fc6d54f Patch to make --disable-shared and --enable-static work with --with-versioned-libs 2005-06-25 10:48:06 +00:00
rocky
c0310e8674 Attempt getting audio port volume levels. 2005-06-11 18:59:47 +00:00
rocky
fdea8ee466 Remove a couple more valgrind-caught memory leaks 2005-06-08 08:07:00 +00:00
rocky
ad95301515 Remove valgrind-caught invalid memory reference. 2005-06-08 07:40:28 +00:00
rocky
cb9abde2e4 Remove a valgrind-caught memory leak. 2005-06-07 23:41:38 +00:00
rocky
7ba5ba86db Bug in getting CD-Text make sure TOC is read before trying to get
CD-Text info. Problem reported by Christian Moser.
2005-05-16 08:11:31 +00:00
rocky
afa9015c4a Heiner reports that FreeBSD's passopen() and xptopen() don't allow
nonblocking access so O_NONBLOCK might do harm. But it's just a guess
pending what others discover/report.
2005-05-09 23:19:40 +00:00
rocky
adeb8ad487 Add O_NONBLOCK on sms's recommendation 2005-05-09 01:06:39 +00:00