]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Expose qemuChrIsPlatformDevice outside from qemu_command
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 8 Nov 2024 11:18:46 +0000 (12:18 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 11 Nov 2024 11:48:42 +0000 (12:48 +0100)
Then it can be used from qemu_hotplug.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h

index f67176fbfd4b4fe8d05293587697140e77e78a17..696f891b470dc1c5ac3657de73cd55b965383de0 100644 (file)
@@ -9065,7 +9065,7 @@ qemuBuildChrDeviceCommandLine(virCommand *cmd,
 }
 
 
-static bool
+bool
 qemuChrIsPlatformDevice(const virDomainDef *def,
                         virDomainChrDef *chr)
 {
index befc3f4ef979ae319a0baa96d7950716488410cd..fb4551a7d041cd8c4483c1b5955c081d6db8b956 100644 (file)
@@ -219,6 +219,11 @@ virJSONValue *qemuBuildHotpluggableCPUProps(const virDomainVcpuDef *vcpu)
 virJSONValue *qemuBuildShmemBackendMemProps(virDomainShmemDef *shmem)
     ATTRIBUTE_NONNULL(1);
 
+bool
+qemuChrIsPlatformDevice(const virDomainDef *def,
+                        virDomainChrDef *chr)
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+
 virJSONValue *
 qemuBuildShmemDevProps(virDomainDef *def,
                        virDomainShmemDef *shmem);