commit | 2f69a5b157e9c5c41847e55bf3e7dbb01b7de99d | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Fri Nov 18 15:26:38 2016 +0100 |
committer | Martijn Coenen <maco@google.com> | Tue Nov 22 12:32:00 2016 +0100 |
tree | 1dd538a98eb91bea8a1b38a4acb43bd8f2e8b86a | |
parent | 1efefd9bb3786b4b320c7e9a936053f7f01e17ee [diff] |
Map handle to hidl_handle in all cases. Instead of having inconsistent types for HIDLs 'handle' type dependent on where the handle is used (eg native_handle_t* in function parameters, but hidl_pointer<native_handle_t> in compound structures), make it consistent by always using hidl_handle. Copy constructors and conversion operators will still make it easy to use for clients/servers. Bug: 32089785 Test: builds, hidl_test32/64 passes Change-Id: I2eb60cb56c4c62ad9479fd57f801349ce0f4b7ef
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0