libvirt/src/qemu/qemu_chardev.h
Peter Krempa baa4edfb79 qemu: chardev: Use 'reconnect-ms' instead of deprecated 'reconnect'
qemu-9.2 will deprecate the 'reconnect' field in favor of
'reconnect-ms'. As libvirt currently doesn't track the timeouts in
milliseconds we simply convert them to avoid use of the deprecated
field.

Quite a lot of churn is caused by the need to plumb 'qemuCaps' into the
chardev props generator.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2024-10-16 14:39:09 +02:00

24 lines
673 B
C

/*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include "domain_conf.h"
#include "qemu_capabilities.h"
#include "vircommand.h"
int
qemuChardevBuildCommandline(virCommand *cmd,
const virDomainChrSourceDef *dev,
const char *charAlias,
virQEMUCaps *qemuCaps);
int
qemuChardevGetBackendProps(const virDomainChrSourceDef *chr,
bool commandline,
virQEMUCaps *qemuCaps,
const char *alias,
const char **backendType,
virJSONValue **props);