From 7363b2266ccc5dc846c4d325249dbedb285d58df Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 7 Jun 2017 10:46:40 +0200 Subject: [PATCH] qemu: add a comment for mon->watch Add a comment for mon->watch to make clear what's the purpose of this value. Signed-off-by: Marc Hartmayer Reviewed-by: Bjoern Walk --- src/qemu/qemu_monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index a2de1a6c5b..5c29b3763a 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -61,6 +61,12 @@ struct _qemuMonitor { virCond notify; int fd; + + /* Represents the watch number to be used for updating and + * unregistering the monitor @fd for events in the event loop: + * > 0: valid watch number + * = 0: not registered + * < 0: an error occurred during the registration of @fd */ int watch; int hasSendFD; int willhangup;