commit | 1977ea3e1f1e6b45c46cacff27020fd988029dc3 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Oct 05 12:49:08 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Oct 07 19:41:51 2016 -0700 |
tree | ddb65fa9f6e5bb8ca435fc2b3d74b5c102b6d255 | |
parent | bb5c80bdec4922aac973551b4f3cbd1008e57820 [diff] [blame] |
hidl-gen: Allow importing only one type from another hal. Test: `mma` Test: hidl_test Bug: 31821285 Change-Id: I14f069f4a21c71bb85465b77200cc860b84f61ec
diff --git a/FQName.cpp b/FQName.cpp index 9bc271b..0169e0c 100644 --- a/FQName.cpp +++ b/FQName.cpp
@@ -241,6 +241,10 @@ return mName.substr(1); } +FQName FQName::getTypesForPackage() const { + return FQName(package(), version(), "types"); +} + const FQName FQName::getTopLevelType() const { auto idx = mName.find('.');