libchromeos: add support for synchronous PropertySet::Get to dbus
This CL adds the support for the newly added GetAndBlock function
in libchrome dbus library.
This will allow us to use a synchronous version of PropertySet::Get.
Bug: 24131409
TEST=run tests on a veyron_jaq chromebook
Change-Id: I926e480c14ff2627fdad5351e438e86a03a721aa
diff --git a/chromeos/dbus/dbus_property.h b/chromeos/dbus/dbus_property.h
index 4314414..0f76a13 100644
--- a/chromeos/dbus/dbus_property.h
+++ b/chromeos/dbus/dbus_property.h
@@ -31,6 +31,11 @@
property_set()->Get(this, callback);
}
+ // Synchronous vesion of Get().
+ bool GetAndBlock() {
+ return property_set()->GetAndBlock(this);
+ }
+
// Requests that the remote object change the property value to |value|,
// |callback| will be called to indicate the success or failure of the
// request, however the new value may not be available depending on the