Remove deprecated libweave APIs
With libweave old (commanddef/state) APIs officially deprecated, removed
their usage from weaved. In places when weaved loads legacy command/state
definitions for vendor daemons, this couldn't be done yet, so the
deprecated API warnings were temporary disabled in the make file.
Also removed D-Bus methods/properties to work with the legacy state
snapshot and instead exposed Components/Traits properties out of the daemon.
BUG: 25917706
Change-Id: I328aff526f284dc69560a7bd7907ad838c0365e2
diff --git a/buffet/manager.h b/buffet/manager.h
index 1dea711..9522340 100644
--- a/buffet/manager.h
+++ b/buffet/manager.h
@@ -93,7 +93,6 @@
void UpdateState(DBusMethodResponsePtr<> response,
const std::string& component,
const brillo::VariantDictionary& property_set) override;
- bool GetState(brillo::ErrorPtr* error, std::string* state) override;
void AddCommand(DBusMethodResponsePtr<std::string> response,
const std::string& json_command) override;
std::string TestMethod(const std::string& message) override;
@@ -101,7 +100,8 @@
void StartPrivet(const Options& options,
brillo::dbus_utils::AsyncEventSequencer* sequencer);
- void OnStateChanged();
+ void OnTraitDefsChanged();
+ void OnComponentTreeChanged();
void OnGcdStateChanged(weave::GcdState state);
void OnConfigChanged(const weave::Settings& settings);
void OnPairingStart(const std::string& session_id,