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__*/