aboutsummaryrefslogtreecommitdiff
path: root/Annotation.h
diff options
context:
space:
mode:
authorZhuoyao Zhang <zhuoyao@google.com>2016-08-10 10:25:20 -0700
committerZhuoyao Zhang <zhuoyao@google.com>2016-08-15 15:28:04 -0700
commit5158db484e5ab302368f191d75d5b1334c270e52 (patch)
tree4a440492a61e10784cdc0e31316000492046b915 /Annotation.h
parent1aa476ba26601828117428c4bdd3367fbf999fec (diff)
downloadhidl-5158db484e5ab302368f191d75d5b1334c270e52.tar.gz
Extend hidl-gen to support generate vts file.
b/30762234 TODO: add regression test. Change-Id: I1c31fd9a85805cd450ea03cc0ccc750a756d1009
Diffstat (limited to 'Annotation.h')
-rw-r--r--Annotation.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Annotation.h b/Annotation.h
index ad98bf9a..07c6d838 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 &params() 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);
};