# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1228836568 28800
# Node ID bbf5b752a9221d12748d9e2bb86dc8ae5b0b5ef1
# Parent 97232024b240a8ebb69758e767910f65c571954e
Make VSSD provider expose ClockOffset property
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 97232024b240 -r bbf5b752a922 src/Virt_VSSD.c
--- a/src/Virt_VSSD.c Tue Dec 09 07:29:28 2008 -0800
+++ b/src/Virt_VSSD.c Tue Dec 09 07:29:28 2008 -0800
@@ -124,6 +124,16 @@
CMSetProperty(inst, "AutomaticRecoveryAction",
(CMPIValue *)&dominfo->on_crash, CMPI_uint16);
+
+ if (dominfo->clock != NULL) {
+ uint16_t clock = VSSD_CLOCK_UTC;
+
+ if (STREQC(dominfo->clock, "localtime"))
+ clock = VSSD_CLOCK_LOC;
+
+ CMSetProperty(inst, "ClockOffset",
+ (CMPIValue *)&clock, CMPI_uint16);
+ }
if ((dominfo->type == DOMAIN_XENFV) ||
(dominfo->type == DOMAIN_KVM))
diff -r 97232024b240 -r bbf5b752a922 src/Virt_VSSD.h
--- a/src/Virt_VSSD.h Tue Dec 09 07:29:28 2008 -0800
+++ b/src/Virt_VSSD.h Tue Dec 09 07:29:28 2008 -0800
@@ -21,6 +21,9 @@
#ifndef __VIRT_VSSD_H
#define __VIRT_VSSD_H
+#define VSSD_CLOCK_UTC 0
+#define VSSD_CLOCK_LOC 1
+
CMPIStatus get_vssd_by_ref(const CMPIBroker *broker,
const CMPIObjectPath *reference,
CMPIInstance **_inst);