2857 Commits

Author SHA1 Message Date
c027fff67b Signed-off-by: Natalia Portillo <claunia@claunia.com>
Added projects for cd-drive, cd-read, iso-info, iso-read, mmc-tool, and add them to solution.
Everything compiles and works.
Modify iso-info so it does declare macro as expected by VS.
2013-10-19 23:34:44 +01:00
f5f3c951bf Additional goes and woes in the VS projects to get it all to work together.
snprintf definition should go in config.h
If Win32 is enabled and Joliet no, it fails. Joliet should be enabled.
vsnprintf definition should go in config.h
lseek64 is defined as _lseeki64 in Windows SDK.
types.h should go to correct place for manually created unistd.h in VS
Macros with arguments are defined differently in GCC than in VS.
2013-10-19 23:18:11 +01:00
c0d32b3e8c Ignore Release and Debug folders.
Windows SDK does have fcntl.h, snprintf, sys/stat.h, vsnprintf, windows.h and lseek64. Does not have inttypes.h. Modify config.h to reflect this.
Windows 8 WDK requires us to specify ddk headers will be used usermode.
__PRETTY_FUNCTION__ is defined in MingW but not in VS. Equal to __FUNCSIG__
DDK headers are not longer in a folder (as of Win8 WDK)
Windows SDK defines _snprintf, same as snprintf.
VS didn't like bool declarations to be inline to function return. Also, it's BOOL in Windows SDK.
Specific VS version.h should be used when using VS.

DOES COMPILE
2013-10-19 22:07:37 +01:00
c0c611e258 Migrated solution and projects to Visual Studio 2012.
Corrected references and folders.
Removed XBOX references.
Added a manually managed version.h as VS does not support autoconf macros.
Check if VS is in use to point to this version.h
gitignore for VS files.
Removed nonexistant files from VS projects.

DOES NOT YET COMPILE
2013-10-19 19:06:40 +01:00
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
0ecb310357 Change mmc_have_interface() to mmc_get_interface() as only one interface can ever be returned.
Change example to the correct behaviour, that the application should do the checking not the library.
Added new interfaces defined from MMC >=3 (IEEE1394B, SATA, USB) and the Vendor Unique one (can be important) that was missing.
2012-04-29 22:01:05 +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
df2b1f120b _cdio_generic.c: Initialize new scsi_tuple field. Removes SEGV in OSX and others.
configure.ac: Try sed -r and -E rather than rely on OS type.
2012-04-29 10:17:56 -04: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
R. Bernstein
f8ab393842 Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio 2012-04-28 21:36:21 -04:00
R. Bernstein
07711418d0 OSX and BSD use -E for extended re's rather than GNU -r 2012-04-28 21:36:06 -04:00
R. Bernstein
e38d35d63d OSX and BSD use -E for extended re's rather than GNU -r 2012-04-28 21:06:50 -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
95aa6b4dfa Need to allow darwin10.8 etc. 2012-04-23 06:23:31 -04:00
rocky
af1b97bfce Pete's changes require a more aggressive use of stdbool.h. 2012-04-23 00:45:58 -04:00
R. Bernstein
53440aae9b configure architecture fixes from Nigel Pearson. 2012-04-22 20:27:38 -04:00
R. Bernstein
03a660d88b Make a stab at recording what's changed. 2012-04-22 19:35:26 -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
rocky
a7bca58f7f Use typedefs for enums. OSX 10.6's C compiler seems to create storage for enums. 2012-04-17 22:15:10 -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
dd7a5dc1bb ld: duplicate symbol _cdtext_format_enum in .libs/gnu_linux.o and
.libs/cdtext.o for architecture x86_64
on OSX. I don't think it needs to be included in gnu_linux.c anyway.
Comment #7, bug #30019
2012-04-16 19:12:48 -04:00
rocky
db91979911 Add back in MIN_CDTEXT_FIELD. It's compatible too. 2012-04-16 04:12:50 -04:00
R. Bernstein
58400f03b9 Add guard around get_mcn for null p_cdio. 2012-04-15 00:49:01 -04:00
R. Bernstein
be5e4108ce Update copyright 2012-04-14 22:17:51 -04:00
R. Bernstein
4e7e72a2c9 Wasn't testing CD-Text error return properly. (Bug found via rbcdio/example/cdtext.rb) 2012-04-14 22:15:26 -04:00
R. Bernstein
77ace7d338 Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio 2012-04-10 03:30:27 -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
Leon Merten Lohse
662c41ef60 Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/libcdio 2012-03-27 17:46:43 +02:00
Leon Merten Lohse
3940726aa7 Fixed that CD-Text from cdrdao toc was shifted one track forward. 2012-03-27 17:45:09 +02:00
R. Bernstein
b052c43389 Update some README's to reflect the current situation. 2012-03-26 07:40:10 -04:00
rocky
aa0c1cb2a3 test/Makefile.am: test example files, some of which are used in tests, is no longer optional
other Makefile.am: remove some cruft.
2012-03-25 20:11:11 -04:00
rocky
eb990be1a6 Getting back to before cdtext library 2012-03-25 17:21:12 -04:00
rocky
177b04c20b Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio 2012-03-25 17:18:59 -04:00
rocky
8a3f964baa Getting back to where we were before we created cdtext 2012-03-25 17:18:49 -04:00
R. Bernstein
023fcab57f Add catalog number to ISO 9660 cue file. 2012-03-25 17:18:49 -04:00
R. Bernstein
79255a6cb8 track.c, gnu_linux.c: Test for exceding max track limit but allow specifying the leadout track in some cases.
Makefile.am: need to build extract unconditionally since that is used in testing
2012-03-25 17:18:49 -04:00
R. Bernstein
8fca6497bc Typo in C preprocessor symbol Comment #3 Savannah #35818 2012-03-25 17:18:49 -04:00
R. Bernstein
be738cbb2f Expand driver test framework a little and the tests we do. 2012-03-25 17:18:49 -04:00
rocky
0fd3a2bf20 MinGW seems to need <stdio.h> for FILE in utf8.h now 2012-03-25 17:18:49 -04:00
R. Bernstein
4684fb002a Small changes. 2012-03-25 17:18:49 -04:00
R. Bernstein
70a56315ac Replace a few collections of preprocessor #define's with enum's.
Savannah bug #35746 https://savannah.gnu.org/bugs/?35746 . Patch from Markus Elfring.
2012-03-25 17:18:48 -04:00
R. Bernstein
a834f98bc8 Recent header work by Pete Batard eliminates the need to set __CDIO_H__ here. 2012-03-25 17:18:48 -04:00
R. Bernstein
511ad638b1 More small header changes:
* Remove leading underscores in header preprocessor names
* Regularize names to include directory parts in the file name
* Untabify files
* Update copyright and remove unmaintained cvs $Id$ line

The justification for removing leading underscores comes from a CERTS Secure Coding recommendation: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL32-CPP.+Do+not+declare+or+define+a+reserved+identifier

See also Savannah bug #35745 https://savannah.gnu.org/bugs/?35745
2012-03-25 17:18:48 -04:00
rocky
1c41e1c46c Create CD-Text library - first round. (Second round will remove from lib/driver) 2012-03-25 17:18:48 -04:00
R. Bernstein
f0cbb08d25 Add catalog number to ISO 9660 cue file. 2012-03-25 13:10:21 -04:00
R. Bernstein
13ba13efee track.c, gnu_linux.c: Test for exceding max track limit but allow specifying the leadout track in some cases.
Makefile.am: need to build extract unconditionally since that is used in testing
2012-03-25 10:39:20 -04:00