--- src/libFLAC/Makefile.am-dist 2002-11-27 15:18:40.000000000 +0100 +++ src/libFLAC/Makefile.am 2002-11-27 15:22:49.000000000 +0100 @@ -63,4 +63,5 @@ seekable_stream_encoder.c \ stream_decoder.c \ stream_encoder.c \ - stream_encoder_framing.c + stream_encoder_framing.c \ + compat.c --- /dev/null 2002-11-27 15:24:34.000000000 +0100 +++ src/libFLAC/compat.c 2002-11-27 15:28:14.000000000 +0100 @@ -0,0 +1,64 @@ +/* + * compat functions + */ + +#include "FLAC/file_decoder.h" + +#undef FLAC__stream_decoder_process_one_frame +#undef FLAC__stream_decoder_process_metadata +#undef FLAC__stream_decoder_process_whole_stream + +#undef FLAC__seekable_stream_decoder_process_one_frame +#undef FLAC__seekable_stream_decoder_process_metadata +#undef FLAC__seekable_stream_decoder_process_whole_stream + +#undef FLAC__file_decoder_process_one_frame +#undef FLAC__file_decoder_process_metadata +#undef FLAC__file_decoder_process_whole_file + +FLAC__bool FLAC__stream_decoder_process_one_frame(FLAC__StreamDecoder *decoder) +{ + return FLAC__stream_decoder_process_single(decoder); +} + +FLAC__bool FLAC__stream_decoder_process_metadata(FLAC__StreamDecoder *decoder) +{ + return FLAC__stream_decoder_process_until_end_of_metadata(decoder); +} + +FLAC__bool FLAC__stream_decoder_process_whole_stream(FLAC__StreamDecoder *decoder) +{ + return FLAC__stream_decoder_process_until_end_of_stream(decoder); +} + + +FLAC__bool FLAC__seekable_stream_decoder_process_one_frame(FLAC__SeekableStreamDecoder *decoder) +{ + return FLAC__seekable_stream_decoder_process_single(decoder); +} + +FLAC__bool FLAC__seekable_stream_decoder_process_metadata(FLAC__SeekableStreamDecoder *decoder) +{ + return FLAC__seekable_stream_decoder_process_until_end_of_metadata(decoder); +} + +FLAC__bool FLAC__seekable_stream_decoder_process_whole_stream(FLAC__SeekableStreamDecoder *decoder) +{ + return FLAC__seekable_stream_decoder_process_until_end_of_stream(decoder); +} + + +FLAC__bool FLAC__file_decoder_process_one_frame(FLAC__FileDecoder *decoder) +{ + return FLAC__file_decoder_process_single(decoder); +} + +FLAC__bool FLAC__file_decoder_process_metadata(FLAC__FileDecoder *decoder) +{ + return FLAC__file_decoder_process_until_end_of_metadata(decoder); +} + +FLAC__bool FLAC__file_decoder_process_whole_file(FLAC__FileDecoder *decoder) +{ + return FLAC__file_decoder_process_until_end_of_file(decoder); +} --- /dev/null 2002-11-27 15:24:28.000000000 +0100 +++ include/FLAC/compat.h 2002-11-27 15:28:38.000000000 +0100 @@ -0,0 +1,20 @@ +/* + * compatible wrappers with FLAC 1.0.3 + */ + +#ifndef FLAC_COMPAT_H +#define FLAC_COMPAT_H + +#define FLAC__file_decoder_process_one_frame FLAC__file_decoder_process_single +#define FLAC__file_decoder_process_metadata FLAC__file_decoder_process_until_end_of_metadata +#define FLAC__file_decoder_process_whole_file FLAC__file_decoder_process_until_end_of_file + +#define FLAC__seekable_stream_decoder_process_one_frame FLAC__seekable_stream_decoder_process_single +#define FLAC__seekable_stream_decoder_process_metadata FLAC__seekable_stream_decoder_process_until_end_of_metadata +#define FLAC__seekable_stream_decoder_process_whole_stream FLAC__seekable_stream_decoder_process_until_end_of_stream + +#define FLAC__stream_decoder_process_one_frame FLAC__stream_decoder_process_single +#define FLAC__stream_decoder_process_metadata FLAC__stream_decoder_process_until_end_of_metadata +#define FLAC__stream_decoder_process_whole_stream FLAC__stream_decoder_process_until_end_of_stream + +#endif /* FLAC_COMPAT_H */ --- include/FLAC/stream_decoder.h-dist 2002-11-27 15:18:10.000000000 +0100 +++ include/FLAC/stream_decoder.h 2002-11-27 15:18:15.000000000 +0100 @@ -21,6 +21,7 @@ #define FLAC__STREAM_DECODER_H #include "format.h" +#include "compat.h" #ifdef __cplusplus extern "C" { --- include/FLAC/Makefile.am-dist 2002-11-27 15:25:31.000000000 +0100 +++ include/FLAC/Makefile.am 2002-11-27 15:29:17.000000000 +0100 @@ -29,4 +29,5 @@ seekable_stream_decoder.h \ seekable_stream_encoder.h \ stream_decoder.h \ - stream_encoder.h + stream_encoder.h \ + compat.h