update_engine: Switch to use Binder interface to weaved
Now that weaved provides a binder interface for its IPC, switch
to using it instead.
Bug: 23782171
Change-Id: I0b981b366a7dc42aabc9b61c4e9f90e26a2d74b4
diff --git a/daemon.h b/daemon.h
index 66841f6..16f22c7 100644
--- a/daemon.h
+++ b/daemon.h
@@ -20,6 +20,9 @@
#include <memory>
#include <string>
+#if USE_WEAVE
+#include <brillo/binder_watcher.h>
+#endif // USE_WEAVE
#include <brillo/daemons/dbus_daemon.h>
#include "update_engine/common/subprocess.h"
@@ -47,6 +50,10 @@
// the main() function.
Subprocess subprocess_;
+#if USE_WEAVE
+ brillo::BinderWatcher binder_watcher_;
+#endif // USE_WEAVE
+
std::unique_ptr<UpdateEngineAdaptor> dbus_adaptor_;
// The RealSystemState uses the previous classes so it should be defined last.