--- libvirt-gconfig/libvirt-gconfig-domain-clock.c | 10 ++++++++++ libvirt-gconfig/libvirt-gconfig-domain-clock.h | 4 ++++ libvirt-gconfig/libvirt-gconfig.sym | 1 + 3 files changed, 15 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-clock.c b/libvirt-gconfig/libvirt-gconfig-domain-clock.c index 338b558..7c41dbf 100644 --- a/libvirt-gconfig/libvirt-gconfig-domain-clock.c +++ b/libvirt-gconfig/libvirt-gconfig-domain-clock.c @@ -101,3 +101,13 @@ void gvir_config_domain_clock_set_variable_offset(GVirConfigDomainClock *klock, "adjustment", G_TYPE_INT, seconds, NULL); } + +void gvir_config_domain_clock_add_timer(GVirConfigDomainClock *klock, + GVirConfigDomainTimer *timer) +{ + g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); + g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer)); + + gvir_config_object_attach_add(GVIR_CONFIG_OBJECT(klock), + GVIR_CONFIG_OBJECT(timer)); +} diff --git a/libvirt-gconfig/libvirt-gconfig-domain-clock.h b/libvirt-gconfig/libvirt-gconfig-domain-clock.h index 6eb2b52..b311048 100644 --- a/libvirt-gconfig/libvirt-gconfig-domain-clock.h +++ b/libvirt-gconfig/libvirt-gconfig-domain-clock.h @@ -27,6 +27,8 @@ #ifndef __LIBVIRT_GCONFIG_DOMAIN_CLOCK_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CLOCK_H__ +#include <libvirt-gconfig/libvirt-gconfig-domain-timer.h> + G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CLOCK (gvir_config_domain_clock_get_type ()) @@ -74,6 +76,8 @@ void gvir_config_domain_clock_set_timezone(GVirConfigDomainClock *klock, const char *tz); void gvir_config_domain_clock_set_variable_offset(GVirConfigDomainClock *klock, gint seconds); +void gvir_config_domain_clock_add_timer(GVirConfigDomainClock *klock, + GVirConfigDomainTimer *timer); G_END_DECLS diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym index 386597b..8eefb95 100644 --- a/libvirt-gconfig/libvirt-gconfig.sym +++ b/libvirt-gconfig/libvirt-gconfig.sym @@ -59,6 +59,7 @@ LIBVIRT_GCONFIG_0.0.7 { gvir_config_domain_clock_offset_get_type; gvir_config_domain_clock_new; gvir_config_domain_clock_new_from_xml; + gvir_config_domain_clock_add_timer; gvir_config_domain_clock_set_offset; gvir_config_domain_clock_set_timezone; gvir_config_domain_clock_set_variable_offset; -- 1.7.10 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list