Re: [PATCH 10/12] Introduce qemuBuildInputDevStr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/17/2017 11:04 AM, Ján Tomko wrote:
> A function that builds the -device string for input devices.
> ---
>  src/qemu/qemu_command.c | 42 +++++++++++++++++++++++++++++-------------
>  src/qemu/qemu_command.h |  7 +++++++
>  2 files changed, 36 insertions(+), 13 deletions(-)
> 

[...]

> diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h
> index 1254ad4df..0961ec8cb 100644
> --- a/src/qemu/qemu_command.h
> +++ b/src/qemu/qemu_command.h
> @@ -204,4 +204,11 @@ char *qemuBuildWatchdogDevStr(const virDomainDef *def,
>                                virDomainWatchdogDefPtr dev,
>                                virQEMUCapsPtr qemuCaps);
>  
> +int qemuBuildInputDevStr(char **devstr,
> +                         const virDomainDef *def,
> +                         virDomainInputDefPtr input,
> +                         virQEMUCapsPtr qemuCaps)
> +    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
> +    ATTRIBUTE_NONNULL(4);

Not sure it matters if qemuCaps is NULL or not since virQEMUCapsGet
checks anyway.

John

> +
>  #endif /* __QEMU_COMMAND_H__*/
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux