summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNingyuan Wang <nywang@google.com>2015-09-29 20:04:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-29 20:04:33 +0000
commiteb5b42f8c442031c15b6e59f8e66a580027c2724 (patch)
tree75e65b4ee9199c6f06456343ff8436a9af758ea0
parentc2f4c40ed24d72fde8c26267d12fd6d0e84cdca5 (diff)
parentf9994ed608b9c3a732c9ecb1c3a3b6f6c9c2b584 (diff)
downloadlibchromeos-eb5b42f8c442031c15b6e59f8e66a580027c2724.tar.gz
Merge "libchromeos: add support for synchronous PropertySet::Get to dbus"
-rw-r--r--chromeos/dbus/dbus_property.h5
1 files changed, 5 insertions, 0 deletions
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 @@ class Property : public dbus::PropertyBase {
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