aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2023-10-22 11:55:07 +0200
committerGitHub <noreply@github.com>2023-10-22 11:55:07 +0200
commitc5f027d6be3fbe6bf8ea9b3e9ff2a773fe94048c (patch)
treef407235c76aeaa8f78d65929d9abd55161dcceb7 /docs/src
parent9956da15670d8793b4f1d5b4bfe0c64169421f27 (diff)
downloadlibuv-c5f027d6be3fbe6bf8ea9b3e9ff2a773fe94048c.tar.gz
libuv-c5f027d6be3fbe6bf8ea9b3e9ff2a773fe94048c.zip
doc: filename arg to uv_fs_event_cb can be NULL (#4177)
Refs: https://github.com/libuv/libuv/issues/4160
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/fs_event.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/src/fs_event.rst b/docs/src/fs_event.rst
index e28ec625..54a776ae 100644
--- a/docs/src/fs_event.rst
+++ b/docs/src/fs_event.rst
@@ -39,8 +39,12 @@ Data types
.. c:type:: void (*uv_fs_event_cb)(uv_fs_event_t* handle, const char* filename, int events, int status)
Callback passed to :c:func:`uv_fs_event_start` which will be called repeatedly
- after the handle is started. If the handle was started with a directory the
- `filename` parameter will be a relative path to a file contained in the directory.
+ after the handle is started.
+
+ If the handle was started with a directory the `filename` parameter will
+ be a relative path to a file contained in the directory, or `NULL` if the
+ file name cannot be determined.
+
The `events` parameter is an ORed mask of :c:type:`uv_fs_event` elements.
.. c:type:: uv_fs_event