summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-11-27 20:17:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-27 20:17:30 +0000
commitca0328cf67e026f882e7e20a157a4f4aeb87f45b (patch)
tree1ee71f1f393e3d71d574f59fae96113aa22b0ec3
parenta8b6eabcab2ddc29173882e750e801e8f6fd8a07 (diff)
parentabce0c749bff42225e35fa4e2a21fa0d632af706 (diff)
downloadlibhidl-ca0328cf67e026f882e7e20a157a4f4aeb87f45b.tar.gz
Merge "Add global definition of hidl_enum_iterator."
-rw-r--r--base/include/hidl/HidlSupport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h
index 486fd0a..f44160f 100644
--- a/base/include/hidl/HidlSupport.h
+++ b/base/include/hidl/HidlSupport.h
@@ -983,6 +983,13 @@ std::string toString(const hidl_array<T, SIZE1, SIZE2, SIZES...> &a) {
+ details::toString(details::const_accessor<T, SIZE1, SIZE2, SIZES...>(a.data()));
}
+/**
+ * Every HIDL generated enum generates an implementation of this function.
+ * E.x.: for(const auto v : hidl_enum_iterator<Enum>) { ... }
+ */
+template <typename>
+struct hidl_enum_iterator;
+
} // namespace hardware
} // namespace android