mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
change "bytes" parameter of all read callbacks from "unsigned" to "size_t"
This commit is contained in:
@@ -312,6 +312,10 @@
|
||||
* two new convenience functions that may be useful:
|
||||
* FLAC__metadata_object_cuesheet_calculate_cddb_id() and
|
||||
* FLAC__metadata_get_cuesheet().
|
||||
*
|
||||
* The \a bytes parameter to FLAC__StreamDecoderReadCallback and
|
||||
* FLAC__StreamEncoderReadCallback is now \c size_t instead of
|
||||
* \c unsigned.
|
||||
*/
|
||||
|
||||
/** \defgroup flac FLAC C API
|
||||
|
||||
@@ -493,7 +493,7 @@ typedef struct {
|
||||
* \retval FLAC__StreamDecoderReadStatus
|
||||
* The callee's return status.
|
||||
*/
|
||||
typedef FLAC__StreamDecoderReadStatus (*FLAC__StreamDecoderReadCallback)(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||
typedef FLAC__StreamDecoderReadStatus (*FLAC__StreamDecoderReadCallback)(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data);
|
||||
|
||||
/** Signature for the seek callback.
|
||||
*
|
||||
|
||||
@@ -484,7 +484,7 @@ typedef struct {
|
||||
* \retval FLAC__StreamEncoderReadStatus
|
||||
* The callee's return status.
|
||||
*/
|
||||
typedef FLAC__StreamEncoderReadStatus (*FLAC__StreamEncoderReadCallback)(const FLAC__StreamEncoder *encoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||
typedef FLAC__StreamEncoderReadStatus (*FLAC__StreamEncoderReadCallback)(const FLAC__StreamEncoder *encoder, FLAC__byte buffer[], size_t *bytes, void *client_data);
|
||||
|
||||
/** Signature for the write callback.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user