]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: add a comment for mon->watch
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Wed, 7 Jun 2017 08:46:40 +0000 (10:46 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 12 Jun 2017 23:11:30 +0000 (19:11 -0400)
Add a comment for mon->watch to make clear what's the purpose of this
value.

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
src/qemu/qemu_monitor.c

index a2de1a6c5badb724ed8f081a0ccda6c2da8eb835..5c29b3763acbd02a7068edb4406d8a8a87696f80 100644 (file)
@@ -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;