Commit Graph

560 Commits

Author SHA1 Message Date
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
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
R. Bernstein
07711418d0 OSX and BSD use -E for extended re's rather than GNU -r 2012-04-28 21:36:06 -04:00
rocky
db91979911 Add back in MIN_CDTEXT_FIELD. It's compatible too. 2012-04-16 04:12:50 -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
8fca6497bc Typo in C preprocessor symbol Comment #3 Savannah #35818 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
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
Leon Merten Lohse
d7d488f816 Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/libcdio 2012-03-22 22:23:21 +01:00
Leon Merten Lohse
591c23ee48 Changed cdtext_select_language to take a cdtext_lang_t instead of a const char * to specify the desired language. 2012-03-22 22:21:52 +01:00
rocky
0b5e5d6465 MinGW seems to need <stdio.h> for FILE in utf8.h now 2012-03-19 21:43:16 -04:00
R. Bernstein
d2f135ea89 Small changes. 2012-03-18 22:45:08 -04:00
R. Bernstein
221d1264da 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-18 13:34:21 -04:00
R. Bernstein
21f3187bb8 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-18 12:02:01 -04:00
Leon Merten Lohse
2a6f153952 [renamed] cdtext_languages_available to cdtext_list_languages
[fixed] C++ CD-Text API
[fixed] C++ CD-Text example
2012-03-11 16:41:28 +01:00
Pete Batard
6571318912 More paranoia and unconfig removal 2012-03-10 21:36:20 -05:00
R. Bernstein
892ff0522e Merge branch 'greenleon' of git.sv.gnu.org:/srv/git/libcdio
Conflicts:
	lib/driver/image/bincue.c
2012-03-10 16:13:58 -05:00
R. Bernstein
0c7c1104fd Small stylistic changes. More will go on in main branch 2012-03-10 13:46:22 -05:00
R. Bernstein
abe5b84295 Multilanguage CD-Text from greenleon 2012-03-05 21:22:08 -05:00
Pete Batard
d01a6302cd Remove .cvsignore as well as cdio/paranoia.h 2012-03-05 23:32:09 +00:00
Pete Batard
d7296d5ec0 Apply MSVC compatibility workaround to ecma_167.h
* An union of empty arrays is not size zero in MSVC
* this causes issues with various sections of the UDF code that
  use sizeof and can prevent structures from being read properly
* group empty array unions with at least one non zero-sized member
2012-03-05 18:08:03 +00:00
Pete Batard
919f39a95d Make fopen() and stat() support UTF-8 paths on Windows 2012-03-05 17:44:13 +00:00
Pete Batard
e6b00d7dcf Add _cdio_strdup_fixpath for absolute paths handling in MinGW
* MinGW may provide absolute paths in the form /c/directory/...
  to native calls that require instead c:/directory
2012-03-05 15:32:35 +00:00
Pete Batard
f574be6cd1 More paranoia removal
* Also some silencing of makefile operations
2012-03-05 14:16:33 +00:00
R. Bernstein
39bd8104b8 Makefile.am: add CDIO_ to all #defines in cdio_config.h
extract.c: give filename on extract errors and convert encoding to unix.
2012-03-04 13:38:35 -05:00
R. Bernstein
739928df7b Pete Batard's patches offset types especially for MinGW and MS Visual C. 2012-03-03 12:10:53 -05:00
R. Bernstein
0bdb015d47 pbatard empty array changes for iso9660.h. I think the last of the header patches. 2012-03-03 11:38:44 -05:00
R. Bernstein
f00c1059d9 pbatard flexible array for ecma_167.h header 2012-03-03 10:46:42 -05:00
R. Bernstein
316fb2408f Reduce differences in pbatard branch for headers. (Still need to add empty array/union differences). 2012-03-03 08:48:43 -05:00
R. Bernstein
dde01f420a Revise OO CD-Text CPP for different interface. Update copyright and untabify some files. 2012-03-03 07:55:27 -05:00
R. Bernstein
110ab30f17 Silence 'cont_###' set but not used warnings on MinGW
From pbatard branch.
Update copyright date on recently changed files.
2012-02-25 20:41:26 -05:00
R. Bernstein
3536da6230 Fix 'struct timespec declared inside parameter list' MinGW warning.
From pbatard branch.
2012-02-25 19:34:16 -05:00
R. Bernstein
1a7366c674 types.h: gcc before 4.5 has a no-argument form of deprecated.
device.h: use LIBCIO_DEPRECATED macro rather than assume gcc.
2012-02-24 05:10:24 -05:00
R. Bernstein
e20dde12c4 Make "distcheck" works again.
include/cdio/Makefile.am: was missing inclusion of cdtext.h
test/Makefile.am: remove paranoia test.
2012-02-23 03:47:08 -05:00
rocky
f9bd26cbc2 paranoia code removed. Is now in separate tree under GPL v2+.
realpath.c: patch from Debian and N. Boullis
2012-02-19 22:11:14 -05:00
rocky
12876c81fd Deprecate some defines - patch from Nicolas Boullis. 2012-02-19 13:04:36 -05:00
R. Bernstein
2fea51593b Incorporate patch #7628 for building outside of source tree. Check for locale en-US. 2011-12-05 07:51:43 -05:00
R. Bernstein
8d43aaca4d Patch from Leon Merten Lohse: Correct the length of the CD-TEXT block. 2011-12-04 20:29:53 -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
e0b2ee826d Don't error out on handling "NO PRE_EMPHASIS" in cdrdao TOC.
Savannah bug #34826:
2011-11-16 20:36:22 -05:00
R. Bernstein
f09889f331 Reduce doxygen warnings regarding documenting some parameters. 2011-10-26 21:23:27 -04:00
R. Bernstein
10ba010cb9 src/cd-paranoia.h and include/cdio/cdio_config.h are derived files, so don't include them in the distribution. 2011-10-20 21:46:29 -04:00
R. Bernstein
958476abf4 Add an include to remove any C Preprocessor symbol libcdio's config.h creates. Programs using
libcdio can do this:

// for cdio:

// for your program
2011-10-20 20:32:20 -04: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
b7203f5d6b Correct test for enable_cdda to accept either curses.h *or* ncurses.h
Add <strings.h> in more places that use bzero. Checks suggested by Blake Jones.

Add preprocessor symbol CDIO_CONFIG_H to <cdio_config.h>
2011-10-20 18:24:10 -04:00
R. Bernstein
8002d97db8 Remove CVS $Id$ line which is no longer automatically updated.
ios9660.hpp under FS because of Solaris macro conflict as suggested by Thomas Schmitt.
cd-drive.c: add some casts to remove gcc warnings
src/cd-paranoia/Makefile.am: remove a GNU make idiom.
README.develop: note needing GNU make or remake
2011-10-19 22:01:37 -04:00
rocky
15cd458874 Use "make" to create include/cdio/cdio_config.h rather than do it in the configure script. 2011-07-08 21:40:07 -04:00