Update libchdr (replace libflac with dr_flac)
[pcsx_rearmed.git] / deps / libchdr / include / libchdr / cdrom.h
similarity index 97%
rename from deps/libchdr/cdrom.h
rename to deps/libchdr/include/libchdr/cdrom.h
index 65aa182..816e6a5 100644 (file)
 #define __CDROM_H__
 
 #include <stdint.h>
-
+#include <libchdr/chdconfig.h>
 
 /***************************************************************************
     CONSTANTS
 ***************************************************************************/
 
 /* tracks are padded to a multiple of this many frames */
-extern const uint32_t CD_TRACK_PADDING;
-
+#define CD_TRACK_PADDING       (4)
 #define CD_MAX_TRACKS           (99)    /* AFAIK the theoretical limit */
 #define CD_MAX_SECTOR_DATA      (2352)
 #define CD_MAX_SUBCODE_DATA     (96)
@@ -60,10 +59,12 @@ enum
     FUNCTION PROTOTYPES
 ***************************************************************************/
 
+#ifdef WANT_RAW_DATA_SECTOR
 /* ECC utilities */
 int ecc_verify(const uint8_t *sector);
 void ecc_generate(uint8_t *sector);
 void ecc_clear(uint8_t *sector);
+#endif