Commit Graph

16 Commits

Author SHA1 Message Date
b5c9b50755 Rename DEBUG_OSX to a more local CDIO_DEBUG_OSX.
Add real tests for osx, maybe be useful in a more general way?
Don't return on any test fail, wait until all are done (they're not mutually exclusive).
2012-05-29 22:51:55 +01:00
019fd5e7cb Added DPRINTF (debug printf) to the whole OS X driver code, this allows for an easier to debug code, less of a need for gdb *sigh*, and helps understanding the function calling tree.
Added my © notice.
2012-05-20 03:06:59 +01:00
Stuart Brady
4fe14a678b Use a consistent definition of bool
Since _Bool is only ever a keyword and not a macro, and we can't
test for HAVE_STDBOOL_H in the headers, remove the #ifdef for it in
<cdio/types.h> and instead, simply define it as 'int'.  Replace
inclusion of <stdbool.h> with <cdio/types.h> so that a consistent
definition of bool is used.

Signed-off-by: Natalia Portillo <claunia@claunia.com>
2012-04-30 23:55:06 +01:00
634bf0ad6b Should skip non-optical (CD, DVD, BD) removable devices in cdio_get_devices_osx().
Test still fails (MMC?) but at least it does not try to use my pendrive.
2012-04-29 22:57:41 +01:00
f1cc4e29d3 Changed Mac OS X SDK check so it detects correct path for 10.3 and 10.4, not only >=10.5. Tested it compiles and works on 10.3, 10.4, 10.5, 10.6 and 10.7.
If Mac OS X SDK is 10.5, include bluray headers, if not manually define the BD media class for IOKit travelling.
When searching for an optical drive, search also for BD media class, so if drive is a BD with a BD disc it will be found (BD with CD or DVD discs were found before).
2012-04-29 16:26:01 +01:00
R. Bernstein
37cca69f1d osx.c: try to eliminate invalid free of an uninitialized structure. untabify various drivers and get this more in-sync with gnu_linux.c driver. 2012-04-28 23:38:11 -04:00
rocky
16f2cc0b17 Do not need DARWIN_10_OR_GREATER but can use __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ instead courtesy Natalia Portillo. Savannah Bug #36330 https://savannah.gnu.org/bugs/?36330 2012-04-28 18:51:59 -04:00
R. Bernstein
e71066d5d9 Fix #30467 cdio_get_default_device() returns non-cdrom removable. From Nigel Pearson. 2012-04-26 01:11:58 -04:00
R. Bernstein
c7c422221e OSX fixes: test for stdbool.h, allow darwin10-12 and set DARWINT_10_OR_GREATER. Use generic CD-Text routines. 2012-04-21 23:42:53 -04:00
R. Bernstein
c09f15298c Reduce use of cdtext_private.h. Let's see if autoconf 2.61 (circa 6 years ago) is okay. Some MacBooks seem to still use this. 2012-04-16 20:21:56 -04:00
R. Bernstein
844578d204 Possibly fixes OSX 10.6 where includes have moved around a bit. 2012-04-10 03:29:32 -04:00
R. Bernstein
998567ef2d lib/driver/osx.c: duplicate transport error enum - cdio/cdda.h removed 2012-02-24 04:35:00 -05:00
R. Bernstein
dbf6d24765 1) cdtext objects are no longer associated with a track but with the disc.
2) - cdio_get_cdtext no longer takes track as an argument
- cdtext_get, cdtext_get_const, cdtext_set require track argument
3) Language, Genre, Genre Code and Encoding Fields are now properly parsed and stored in the cdtext object
4) Added public function cdio_get_cdtext_raw to extract the binary CD-Text
5) Added CDTEXTFILE keyword logic in cue sheet parser. Parses binary/raw CD-Text files
6) Added cdtext_genre2str to convert genre code
7) altered the example programs, test drivers, cdda-player and cd-info to work with these changes
8) Added test case
9) A few smaller changes
A disc either holds CD-Text for all the tracks or does not hold any. Therefore a CD-Text object for the whole disc seems more natural to me. It also enables us to store global fields, like genre, encoding, language.

Patch was tested on GNU/Linux 32 bit running Gentoo.
2011-11-24 20:54:40 -05:00
R. Bernstein
f215cad224 Make sure config.h or the copy of that gets included only once to reduce duplicate include
warnings.
2011-10-20 19:44:10 -04:00
R. Bernstein
2d46440352 Handle SCSI_MMC_DATA_NONE and copy sense data. Not working since SCSI Pass is still broken. Presumably after that's solved there will be less catch-up work. 2010-02-01 05:16:33 -05:00
R. Bernstein
95f087cdc3 First commit after CVS conversion. Should be just administrative changes. 2008-11-29 00:56:26 -05:00