]> git.proxmox.com Git - mirror_qemu.git/commitdiff
chardev/char-fe: Document FEWatchFunc typedef
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 5 Jul 2023 11:21:11 +0000 (13:21 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Aug 2023 17:47:43 +0000 (19:47 +0200)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230705133139.54419-4-philmd@linaro.org>

include/chardev/char-fe.h

index 8c420fa36e3cb772d89e9d09e5c3e5c7f0afb2ca..0109602d6387af659e2e081ee571d31cee9afca5 100644 (file)
@@ -175,6 +175,20 @@ void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...)
     G_GNUC_PRINTF(2, 3);
 
 
+/**
+ * FEWatchFunc: a #GSourceFunc called when any conditions requested by
+ *              qemu_chr_fe_add_watch() is satisfied.
+ * @do_not_use: depending on the underlying chardev, a GIOChannel or a
+ *              QIOChannel. DO NOT USE!
+ * @cond: bitwise combination of conditions watched and satisfied
+ *              before calling this callback.
+ * @data: user data passed at creation to qemu_chr_fe_add_watch(). Can
+ *              be NULL.
+ *
+ * Returns: G_SOURCE_REMOVE if the GSource should be removed from the
+ *              main loop, or G_SOURCE_CONTINUE to leave the GSource in
+ *              the main loop.
+ */
 typedef gboolean (*FEWatchFunc)(void *do_not_use, GIOCondition condition, void *data);
 
 /**