summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2023-04-26 16:11:42 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2023-04-26 16:11:42 +0000
commit73bf66dd2abe631ea82b6d5833b21d82ab0cd599 (patch)
treef6d2db7c4e3ead327e1d4da8701e1320b5d26259
parent1df0e81b1997551d9fab597dce870f1b9056df72 (diff)
parentdf9d3818ac8b7c55f60da040175c229e7d1def4c (diff)
downloadglib-73bf66dd2abe631ea82b6d5833b21d82ab0cd599.tar.gz
Merge branch 'unix-fd-source-docs' into 'main'
glib-unix: Improve documentation for g_unix_fd_source_new() See merge request GNOME/glib!3396
-rw-r--r--glib/glib-unix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/glib/glib-unix.c b/glib/glib-unix.c
index ef0d1fbfb..f671887c9 100644
--- a/glib/glib-unix.c
+++ b/glib/glib-unix.c
@@ -293,12 +293,15 @@ GSourceFuncs g_unix_fd_source_funcs = {
/**
* g_unix_fd_source_new:
* @fd: a file descriptor
- * @condition: IO conditions to watch for on @fd
+ * @condition: I/O conditions to watch for on @fd
*
- * Creates a #GSource to watch for a particular IO condition on a file
+ * Creates a #GSource to watch for a particular I/O condition on a file
* descriptor.
*
- * The source will never close the fd -- you must do it yourself.
+ * The source will never close the @fd — you must do it yourself.
+ *
+ * Any callback attached to the returned #GSource must have type
+ * #GUnixFDSourceFunc.
*
* Returns: the newly created #GSource
*