summaryrefslogtreecommitdiff
path: root/migration/channel.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-07-24 12:55:26 +0200
committerJuan Quintela <quintela@redhat.com>2017-09-22 14:11:18 +0200
commit8e1a1931ca9bcb09b9db1180c9c08ecd5cc6b4de (patch)
treed3bb7773d36da6b47fef01ca5c2dfd7f7ac69300 /migration/channel.c
parent2a543bfdfadb432d82bab256a9a72b00c331b484 (diff)
downloadqemu-8e1a1931ca9bcb09b9db1180c9c08ecd5cc6b4de.tar.gz
migration: Add comments to channel functions
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'migration/channel.c')
-rw-r--r--migration/channel.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/migration/channel.c b/migration/channel.c
index edceebdb7b..70ec7ea3b7 100644
--- a/migration/channel.c
+++ b/migration/channel.c
@@ -19,6 +19,14 @@
#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)