summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2018-05-01 21:08:51 -0500
committerYifan Hong2018-05-02 16:31:45 -0500
commit5541069e3c155797649e3eb568349d8cb7f119d6 (patch)
tree713c6292fd703048736706ce86c8b6fa2b094e1c /include
parent7030c38ce61f520b32ab3f7761289a5d7534a74d (diff)
downloadplatform-system-libvintf-5541069e3c155797649e3eb568349d8cb7f119d6.tar.gz
platform-system-libvintf-5541069e3c155797649e3eb568349d8cb7f119d6.tar.xz
platform-system-libvintf-5541069e3c155797649e3eb568349d8cb7f119d6.zip
Add ManifestHal::insertInstance
... that allows to add <fqname> to ManifestHal object from code. This helps, for example, lshal. Bug: 74247301 Test: pass Change-Id: I28b5bb1240e24f1762d2df4cb1ded242fabea99e
Diffstat (limited to 'include')
-rw-r--r--include/vintf/ManifestHal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vintf/ManifestHal.h b/include/vintf/ManifestHal.h
index ad7be3b..f41b7b5 100644
--- a/include/vintf/ManifestHal.h
+++ b/include/vintf/ManifestHal.h
@@ -93,7 +93,11 @@ struct ManifestHal {
93 // Existing instances will be ignored. 93 // Existing instances will be ignored.
94 // Pre: all instances to be inserted must satisfy 94 // Pre: all instances to be inserted must satisfy
95 // !hasPackage() && hasVersion() && hasInterface() && hasInstance() 95 // !hasPackage() && hasVersion() && hasInterface() && hasInstance()
96 bool insertInstance(const FqInstance& fqInstance, std::string* error = nullptr);
96 bool insertInstances(const std::set<FqInstance>& fqInstances, std::string* error = nullptr); 97 bool insertInstances(const std::set<FqInstance>& fqInstances, std::string* error = nullptr);
98
99 // Verify instance before inserting.
100 bool verifyInstance(const FqInstance& fqInstance, std::string* error = nullptr) const;
97}; 101};
98 102
99} // namespace vintf 103} // namespace vintf