aboutsummaryrefslogtreecommitdiff
path: root/Coordinator.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2017-11-06 14:46:52 -0800
committerAndreas Huber <andih@google.com>2017-11-06 15:58:06 -0800
commit308d8a2b9c2a6b734e9101948c50f8dd3e1448b3 (patch)
tree33e2cee449d9c7ac5fc00de670f97914dc93b357 /Coordinator.cpp
parentb47e69b647916a28702926abaa14ec5d10c3f796 (diff)
downloadhidl-308d8a2b9c2a6b734e9101948c50f8dd3e1448b3.tar.gz
Optionally, if passing -v(erbose) to hidl-gen, dump declared
struct/union/enum types that are not referenced from within the package. Bug: 68343606 Test: make, hidl-gen Change-Id: Id5d9e6d7a8357b3b56575347ffd937d1d28506ff
Diffstat (limited to 'Coordinator.cpp')
-rw-r--r--Coordinator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 7ecef5bb..b20b2a85 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -59,6 +59,10 @@ void Coordinator::setVerbose(bool verbose) {
mVerbose = verbose;
}
+bool Coordinator::isVerbose() const {
+ return mVerbose;
+}
+
status_t Coordinator::addPackagePath(const std::string& root, const std::string& path, std::string* error) {
FQName package = FQName(root, "0.0", "");
for (const PackageRoot &packageRoot : mPackageRoots) {