shill: Framework for asynchronous service side RPC calls.
Use the framework to switch EnterPIN to return asynchronously.
Also, added a few try/catch clauses around DBus proxy calls to ease testing and
debugging. They should go away as we transition to asynchronous proxy calls.
BUG=chromium-os:17263
TEST=unit tests, tested on device
Change-Id: I4177c5b91e23c31838b03689de729932c859a936
Reviewed-on: https://gerrit.chromium.org/gerrit/12541
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Eric Shienbrood <ers@chromium.org>
Commit-Ready: Darin Petkov <petkov@chromium.org>
diff --git a/error.h b/error.h
index bee2465..3c01047 100644
--- a/error.h
+++ b/error.h
@@ -51,6 +51,8 @@
void Reset();
+ void CopyFrom(const Error &error);
+
// Sets the DBus |error| and returns true if Error represents failure.
// Leaves |error| unchanged, and returns false, otherwise.
bool ToDBusError(::DBus::Error *error) const;