Extend hidl-gen to support generate vts file.
b/30762234
TODO: add regression test.
Change-Id: I1c31fd9a85805cd450ea03cc0ccc750a756d1009
diff --git a/Annotation.h b/Annotation.h
index ad98bf9..07c6d83 100644
--- a/Annotation.h
+++ b/Annotation.h
@@ -10,19 +10,20 @@
namespace android {
struct Formatter;
+using AnnotationParamVector =
+ DefaultKeyedVector<std::string, std::vector<std::string> *>;
struct Annotation {
- Annotation(
- const char *name,
- KeyedVector<std::string, std::vector<std::string> *> *params);
+ Annotation(const char *name, AnnotationParamVector *params);
std::string name() const;
+ const AnnotationParamVector ¶ms() const;
void dump(Formatter &out) const;
private:
std::string mName;
- KeyedVector<std::string, std::vector<std::string> *> *mParamsByName;
+ AnnotationParamVector *mParamsByName;
DISALLOW_COPY_AND_ASSIGN(Annotation);
};