Module owner support in HIDL.
- "hidl-gen -O OWNER" option supported for -Landroidbp(-impl)?
- hidl_interface owner can be set to propogate ownership to other modules
- update-makefile-helper script takes "-O" option and passes it to
hidl-gen so that you can do this.
Test: all three of the above OWNERS usecases
Test: test/run_all_host_tests.sh
Fixes: 70157937
Change-Id: Iad99a8fea45c0627d6382e42da43b214d22695bd
diff --git a/Coordinator.h b/Coordinator.h
index 5bc4584..5606881 100644
--- a/Coordinator.h
+++ b/Coordinator.h
@@ -35,12 +35,15 @@
struct Coordinator {
Coordinator() {};
- const std::string &getRootPath() const;
+ const std::string& getRootPath() const;
void setRootPath(const std::string &rootPath);
void setVerbose(bool value);
bool isVerbose() const;
+ const std::string& getOwner() const;
+ void setOwner(const std::string& owner);
+
// adds path only if it doesn't exist
status_t addPackagePath(const std::string& root, const std::string& path, std::string* error);
// adds path if it hasn't already been added
@@ -137,7 +140,10 @@
std::vector<PackageRoot> mPackageRoots;
std::string mRootPath;
+
+ // hidl-gen options
bool mVerbose;
+ std::string mOwner;
// cache to parse().
mutable std::map<FQName, AST *> mCache;