Commit Graph

521 Commits

Author SHA1 Message Date
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
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
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
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
rocky
5ac9df4db8 Reduce range of seek in paranoia_seek to be int32_t. CDDA's definitely live within this range. off_t is influenced by _FILE_OFFSET_BITS and can cause problems on a 32-bit system where _FILE_OFFSET_BITS is set to 64. See Bastiaan Timmer's posting to libcdio-help on July 7, 2011. 2011-07-08 21:15:29 -04:00
R. Bernstein
7d23f847e6 Add git install instructions. Simplify and customize INSTALL. Add dependency to cause version.texi to get created. Update my email address. 2011-05-19 07:43:38 -04:00
rocky
f2438edcbc Add ISRC track info to cd-info output. Code from Scot C. Bontrager. 2011-05-18 09:48:03 -04:00
rocky
d10938c43c Add mmc routine to get the ISRC information on a CD that is in the q subchannel
but not showing up in the CDTEXT. Contributed by Scot C. Bontrager.
2011-05-17 22:59:36 -04:00
R. Bernstein
05a2fb6d35 Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio 2010-10-22 23:43:01 -04:00
R. Bernstein
122aecc0a9 udf.h, libudf.sym, udf_private.h: expose struct udf_dirent_s and udf_get_lba()
udf_file.c: udf_read_block() Raise level of severity on warning when requested
blocks exceed the number in the extent.
2010-10-22 23:39:19 -04:00
rocky
621e41ed60 Merge branch 'master' of git.sv.gnu.org:/srv/git/libcdio 2010-08-27 17:09:36 -04:00
rocky
e3226cdd2b Typo in doxygen comment 2010-08-27 17:09:14 -04:00
R. Bernstein
e6b6353cb8 uint8_t -> unsigned int. http://en.wikipedia.org/wiki/C_syntax#Bit_fields via Thomas Schmitt 2010-05-11 13:55:08 -04:00
R. Bernstein
7d52ffcac0 Typo found by Thomas Schmitt. 2010-05-11 10:51:26 -04:00
R. Bernstein
c10bee26b6 mmc_util.{c,h} Break simpler non-dependent mmc helper or utility routines from mmc.{c,h} 2010-02-22 15:18:59 -05:00
R. Bernstein
ff49db8449 Move another routine from mmc.c into mmc_hl_cmds.c 2010-02-11 06:35:22 -05:00
R. Bernstein
7f37476924 Split off MMC tests which don't involve exclusive access from those that do. 2010-02-10 22:30:37 -05:00
R. Bernstein
80304a8cef Add mmc_read_disc_information. Change get_disctype to use it and thus it
moves from mmc.c into mmc_hl_cmds.c. Status is now the return type, not
erasable.

Split mmc_cmds.h into mmc_ll_cmds.h and mmc_hl_cmds.h.
test/driver/mmc.c for invalid page check we get the right sense key,
asc, and ascq.
2010-02-09 22:39:05 -05:00
R. Bernstein
57407e65a2 Add CDIO_MMC_GPCMD_READ_TRACK_INFORMATION 2010-02-09 11:26:15 -05:00
R. Bernstein
6b95148431 Comment spelling typos 2010-02-08 21:49:50 -05:00
R. Bernstein
5656a0b14c Remove duplicate cdio_mmc_disctype_t. 2010-02-08 19:01:14 -05:00
R. Bernstein
2d3b7d28b4 Add SCSI-MMC GET CONFIGURATION.
Add Frank Endres' disc type determination via MMC.
Be more careful to suffix with CDIO_MMC which I hope will reduce possible name conflicts.
2010-02-07 21:04:21 -05:00