diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2023-06-16 06:46:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 06:46:57 +0200 |
commit | d80e574451da8a515afb55d113c731344a667e55 (patch) | |
tree | 9950ebf1cbb5f8bbc00cec23d4fd5d4969dfc7f0 | |
parent | 4f9be8620bac082d5810c354c83a072491428b18 (diff) | |
download | flac-d80e574451da8a515afb55d113c731344a667e55.tar.gz |
Explain use of errno with callbacks
-rw-r--r-- | include/FLAC/callback.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/FLAC/callback.h b/include/FLAC/callback.h index a1c88259..4babcd32 100644 --- a/include/FLAC/callback.h +++ b/include/FLAC/callback.h @@ -90,7 +90,9 @@ typedef void* FLAC__IOHandle; /** Signature for the read callback. * The signature and semantics match POSIX fread() implementations - * and can generally be used interchangeably. + * and can generally be used interchangeably. Note that the global + * variable errno from errno.h is read by some libFLAC functions to + * detect read errors. * * \param ptr The address of the read buffer. * \param size The size of the records to be read. @@ -166,6 +168,9 @@ typedef int (*FLAC__IOCallback_Close) (FLAC__IOHandle handle); * * If the seek requirement for an interface is optional, you can signify that * a data source is not seekable by setting the \a seek field to \c NULL. + * + * See the detailed documentation for callbacks in the + * \link flac_callbacks callbacks \endlink module. */ typedef struct { FLAC__IOCallback_Read read; /**< See FLAC__IOCallbacks */ |