commit | eb4fe780a759796a6e496764d6744ede4af72ca9 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Apr 20 18:12:05 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Apr 21 18:07:19 2017 +0000 |
tree | 0805a4558887aabe34b610f353cc0fffb07976e9 | |
parent | e93459649ff9bab69b296869ece46e43c05f4bbf [diff] |
Fix wrapPassthrough casts to the wrong type. wrapPassthrough should cast to IType *, not IBase *, for the incoming pointer. Also, use static_cast instead of reinterpret_cast everywhere. Bug: 37542631 Bug: 36225019 Test: hidl_test Change-Id: If17d6bdba4f27d402723ec5838d5f546d72fe311
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0