]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
migration: Add comments to channel functions
authorJuan Quintela <quintela@redhat.com>
Mon, 24 Jul 2017 10:55:26 +0000 (12:55 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 22 Sep 2017 12:11:18 +0000 (14:11 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
migration/channel.c

index edceebdb7b5a6b9feb3715698ec6ff8b9caddb9c..70ec7ea3b79a6d45debff2b584efd91cd7602df7 100644 (file)
 #include "qapi/error.h"
 #include "io/channel-tls.h"
 
+/**
+ * @migration_channel_process_incoming - Create new incoming migration channel
+ *
+ * Notice that TLS is special.  For it we listen in a listener socket,
+ * and then create a new client socket from the TLS library.
+ *
+ * @ioc: Channel to which we are connecting
+ */
 void migration_channel_process_incoming(QIOChannel *ioc)
 {
     MigrationState *s = migrate_get_current();
@@ -41,6 +49,13 @@ void migration_channel_process_incoming(QIOChannel *ioc)
 }
 
 
+/**
+ * @migration_channel_connect - Create new outgoing migration channel
+ *
+ * @s: Current migration state
+ * @ioc: Channel to which we are connecting
+ * @hostname: Where we want to connect
+ */
 void migration_channel_connect(MigrationState *s,
                                QIOChannel *ioc,
                                const char *hostname)