hidl-gen: Allow importing only one type from another hal.

Test: `mma`
Test: hidl_test

Bug: 31821285
Change-Id: I14f069f4a21c71bb85465b77200cc860b84f61ec
diff --git a/FQName.h b/FQName.h
index e2d0159..391ba3d 100644
--- a/FQName.h
+++ b/FQName.h
@@ -99,11 +99,16 @@
     // -> Bar
     std::string getInterfaceBaseName() const;
 
+    // Replace whatever after :: with "types"
+    // android.hardware.foo@1.0::Abc.Type:VALUE
+    // -> android.hardware.foo@1.0::types
+    FQName getTypesForPackage() const;
+
     // the following comments all assume that the FQName
-    // is ::android::hardware::Foo::V1_0::IBar::Baz
+    // is android.hardware.foo@1.0::IBar.Baz.Bam
 
     // returns highest type in the hidl namespace, i.e.
-    // ::android::hardware::Foo::V1_0::IBar
+    // android.hardware.foo@1.0::IBar
     const FQName getTopLevelType() const;
 
     // returns an unambiguous fully qualified name which can be