qemu: Hide internals of qemuMigrationParams struct

All users of migration parameters are supposed to use APIs provided by
qemu_migration_params.c without having to worry about the internals.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark 2018-03-07 12:38:27 +01:00
parent 4bac1879ce
commit 7b559ad373
2 changed files with 5 additions and 3 deletions

View File

@ -30,6 +30,7 @@
#include "qemu_hotplug.h"
#include "qemu_migration.h"
#include "qemu_migration_params.h"
#include "qemu_monitor.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
@ -37,6 +38,10 @@ VIR_LOG_INIT("qemu.qemu_migration_params");
#define QEMU_MIGRATION_TLS_ALIAS_BASE "libvirt_migrate"
struct _qemuMigrationParams {
qemuMonitorMigrationParams params;
};
qemuMigrationParamsPtr
qemuMigrationParamsNew(void)

View File

@ -49,9 +49,6 @@ struct _qemuMigrationCompression {
typedef struct _qemuMigrationParams qemuMigrationParams;
typedef qemuMigrationParams *qemuMigrationParamsPtr;
struct _qemuMigrationParams {
qemuMonitorMigrationParams params;
};
qemuMigrationParamsPtr