diff options
author | Ningyuan Wang <nywang@google.com> | 2015-09-28 17:30:20 -0700 |
---|---|---|
committer | Ningyuan Wang <nywang@google.com> | 2015-09-28 17:30:20 -0700 |
commit | f9994ed608b9c3a732c9ecb1c3a3b6f6c9c2b584 (patch) | |
tree | 07618e6dac602d95467bd1fc551aa6bdc84a5f00 | |
parent | 9a03be71872432e97207ae65ff8b1ef9180018fd (diff) | |
download | libchromeos-f9994ed608b9c3a732c9ecb1c3a3b6f6c9c2b584.tar.gz |
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
-rw-r--r-- | chromeos/dbus/dbus_property.h | 5 |
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 |