aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2023-06-16 06:46:57 +0200
committerGitHub <noreply@github.com>2023-06-16 06:46:57 +0200
commitd80e574451da8a515afb55d113c731344a667e55 (patch)
tree9950ebf1cbb5f8bbc00cec23d4fd5d4969dfc7f0
parent4f9be8620bac082d5810c354c83a072491428b18 (diff)
downloadflac-d80e574451da8a515afb55d113c731344a667e55.tar.gz
Explain use of errno with callbacks
-rw-r--r--include/FLAC/callback.h7
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 */