X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2FFLAC%2Fstream_decoder.h;h=920a3a3c6722b247a7d678da24e2b29f061f0bec;hb=77e3f319a561894960a3667244df630f8468e60f;hp=91cdf8024468948f7ac47c5c03d6ea9c92819de0;hpb=3d094cd0977cebe902d48086ade1928b35686ba9;p=platform%2Fupstream%2Fflac.git diff --git a/include/FLAC/stream_decoder.h b/include/FLAC/stream_decoder.h index 91cdf80..920a3a3 100644 --- a/include/FLAC/stream_decoder.h +++ b/include/FLAC/stream_decoder.h @@ -113,11 +113,11 @@ void FLAC__stream_decoder_delete(FLAC__StreamDecoder *); * FLAC__stream_decoder_flush() or FLAC__stream_decoder_reset() do * NOT reset the values to the constructor defaults. */ -bool FLAC__stream_decoder_set_read_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderReadStatus (*value)(const FLAC__StreamDecoder *decoder, byte buffer[], unsigned *bytes, void *client_data)); -bool FLAC__stream_decoder_set_write_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderWriteStatus (*value)(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const int32 *buffer[], void *client_data)); -bool FLAC__stream_decoder_set_metadata_callback(const FLAC__StreamDecoder *decoder, void (*value)(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetaData *metadata, void *client_data)); -bool FLAC__stream_decoder_set_error_callback(const FLAC__StreamDecoder *decoder, void (*value)(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)); -bool FLAC__stream_decoder_set_client_data(const FLAC__StreamDecoder *decoder, void *value); +FLAC__bool FLAC__stream_decoder_set_read_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderReadStatus (*value)(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data)); +FLAC__bool FLAC__stream_decoder_set_write_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderWriteStatus (*value)(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *buffer[], void *client_data)); +FLAC__bool FLAC__stream_decoder_set_metadata_callback(const FLAC__StreamDecoder *decoder, void (*value)(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetaData *metadata, void *client_data)); +FLAC__bool FLAC__stream_decoder_set_error_callback(const FLAC__StreamDecoder *decoder, void (*value)(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)); +FLAC__bool FLAC__stream_decoder_set_client_data(const FLAC__StreamDecoder *decoder, void *value); /* * Methods to return the current stream decoder state, number @@ -150,15 +150,15 @@ void FLAC__stream_decoder_finish(FLAC__StreamDecoder *decoder); /* * state control methods */ -bool FLAC__stream_decoder_flush(FLAC__StreamDecoder *decoder); -bool FLAC__stream_decoder_reset(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_flush(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_reset(FLAC__StreamDecoder *decoder); /* * Methods for decoding the data */ -bool FLAC__stream_decoder_process_whole_stream(FLAC__StreamDecoder *decoder); -bool FLAC__stream_decoder_process_metadata(FLAC__StreamDecoder *decoder); -bool FLAC__stream_decoder_process_one_frame(FLAC__StreamDecoder *decoder); -bool FLAC__stream_decoder_process_remaining_frames(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_process_whole_stream(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_process_metadata(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_process_one_frame(FLAC__StreamDecoder *decoder); +FLAC__bool FLAC__stream_decoder_process_remaining_frames(FLAC__StreamDecoder *decoder); #endif