commit | 341112d8d4e41b1020f9bc9517b765b6fcb1d0c7 | [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 11:11:54 2017 -0700 |
tree | bd4950d7771b07eb49f0cb4a4b2704a506f3c1e1 | |
parent | 8cf3ac3e553a40fbe1b749ebe92658bda6efaf9e [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