This commit adds the string-to-enum mapping for "multitouch" in the
VIR_ENUM_IMPL macro within src/conf/domain_conf.c.

This mapping is essential for XML parsing and serialization, enabling
libvirt to recognize "multitouch" as a valid value for the type attribute
in input device definitions. When users specify type='multitouch' in their
domain XML, this mapping allows libvirt to convert the string to the
VIR_DOMAIN_INPUT_TYPE_MULTITOUCH enum value internally.

Without this mapping, libvirt would reject domain XML containing multitouch
input devices as invalid.

Signed-off-by: Julio Faracco <[email protected]>
---
 src/conf/domain_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 9ca5c2450c..aeb81fc42f 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -916,6 +916,7 @@ VIR_ENUM_IMPL(virDomainInput,
               "keyboard",
               "passthrough",
               "evdev",
+              "multitouch",
 );
 
 VIR_ENUM_IMPL(virDomainInputBus,
-- 
2.52.0

Reply via email to