---
libvirt-gconfig/libvirt-gconfig-domain-input.c | 24 ++++++++++++++++++++++++
libvirt-gconfig/libvirt-gconfig-domain-input.h | 2 ++
libvirt-gconfig/libvirt-gconfig.sym | 3 +++
3 files changed, 29 insertions(+)
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-input.c
b/libvirt-gconfig/libvirt-gconfig-domain-input.c
index 9dd4717..e87c61c 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-input.c
+++ b/libvirt-gconfig/libvirt-gconfig-domain-input.c
@@ -69,6 +69,18 @@ GVirConfigDomainInput *gvir_config_domain_input_new_from_xml(const
gchar *xml,
return GVIR_CONFIG_DOMAIN_INPUT(object);
}
+
+GVirConfigDomainInputDeviceType
gvir_config_domain_input_get_device_type(GVirConfigDomainInput *input)
+{
+ g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input),
+ GVIR_CONFIG_DOMAIN_INPUT_DEVICE_MOUSE);
+ return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(input),
+ NULL, "type",
+
GVIR_CONFIG_TYPE_DOMAIN_INPUT_DEVICE_TYPE,
+
GVIR_CONFIG_DOMAIN_INPUT_DEVICE_MOUSE);
+}
+
+
void gvir_config_domain_input_set_device_type(GVirConfigDomainInput *input,
GVirConfigDomainInputDeviceType type)
{
@@ -79,6 +91,18 @@ void gvir_config_domain_input_set_device_type(GVirConfigDomainInput
*input,
type, NULL);
}
+
+GVirConfigDomainInputBus gvir_config_domain_input_get_bus(GVirConfigDomainInput *input)
+{
+ g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input),
+ GVIR_CONFIG_DOMAIN_INPUT_BUS_PS2);
+ return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(input),
+ NULL, "bus",
+ GVIR_CONFIG_TYPE_DOMAIN_INPUT_BUS,
+ GVIR_CONFIG_DOMAIN_INPUT_BUS_PS2);
+}
+
+
void gvir_config_domain_input_set_bus(GVirConfigDomainInput *input,
GVirConfigDomainInputBus bus)
{
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-input.h
b/libvirt-gconfig/libvirt-gconfig-domain-input.h
index d67309e..252b6ca 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-input.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-input.h
@@ -72,8 +72,10 @@ GType gvir_config_domain_input_get_type(void);
GVirConfigDomainInput *gvir_config_domain_input_new(void);
GVirConfigDomainInput *gvir_config_domain_input_new_from_xml(const gchar *xml,
GError **error);
+GVirConfigDomainInputDeviceType
gvir_config_domain_input_get_device_type(GVirConfigDomainInput *input);
void gvir_config_domain_input_set_device_type(GVirConfigDomainInput *input,
GVirConfigDomainInputDeviceType type);
+GVirConfigDomainInputBus gvir_config_domain_input_get_bus(GVirConfigDomainInput *input);
void gvir_config_domain_input_set_bus(GVirConfigDomainInput *input,
GVirConfigDomainInputBus bus);
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 46566c1..ead313b 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -653,6 +653,9 @@ global:
gvir_config_domain_graphics_rdp_set_multi_user;
gvir_config_domain_graphics_rdp_set_replace_user;
+ gvir_config_domain_input_get_bus;
+ gvir_config_domain_input_get_device_type;
+
gvir_config_domain_interface_filterref_add_parameter;
gvir_config_domain_interface_filterref_get_name;
gvir_config_domain_interface_filterref_get_parameters;
--
1.8.4.2