aboutsummaryrefslogtreecommitdiff
path: root/HandleType.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2016-11-11 11:13:57 -0800
committerYifan Hong <elsk@google.com>2016-11-14 16:56:40 -0800
commit244e82d34bf0ef5d8d5b0730a9dea3e3fc4de7c5 (patch)
treee298b88f42b0e47a28a1a1e9d60cae0d41ed384b /HandleType.h
parent1a97a5f70b8dbe9033a05b78fd00b4aed9d6f209 (diff)
downloadhidl-244e82d34bf0ef5d8d5b0730a9dea3e3fc4de7c5.tar.gz
move read/writeEmbedded[References]From/ToParcel out
from hidl_string, hidl_vec, and structs. * Add a hwtypes.h in the autogenerated files, which contains the read/writeEmbeddedFrom/ToParcel methods for structs defined in types.h. * Fixes the hack that remove the warnings when compiling the generated code (useParentInEmitResolveReferencesEmbedded()) and add one more hack (useNameInEmitReaderWriterEmbedded()) * Some clean-up on Scope.cpp (add a forEachType function) Test: mma Test: hidl_test Bug: 32756130 Change-Id: Icfd116b5d92fef78d257337c3f2ef02071f7600b
Diffstat (limited to 'HandleType.h')
-rw-r--r--HandleType.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/HandleType.h b/HandleType.h
index 527c930b..d3805f6a 100644
--- a/HandleType.h
+++ b/HandleType.h
@@ -56,6 +56,8 @@ struct HandleType : public Type {
bool isJavaCompatible() const override;
+ bool useNameInEmitReaderWriterEmbedded(bool isReader) const override;
+
void getAlignmentAndSize(size_t *align, size_t *size) const override;
};