commit | ac5878945afde379e41d9c93de44c32537f868b1 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Thu Nov 17 15:14:19 2016 +0100 |
committer | Martijn Coenen <maco@google.com> | Thu Nov 17 15:14:19 2016 +0100 |
tree | 23760ad957fb6532194cd3682eeb968fc9f5d7a1 | |
parent | 859e53f03cdbed35b0aa9faf60c9a13dc29b11c1 [diff] |
Wrap compound native_handle_t* in hidl_pointer. When transferring a handle in a compound type, we need to use hidl_pointer<> to ensure that we allocate enough space for the pointer. But we want to hide the hidl_pointer<> type from client/server code as much as we can, so we only use this type when necessary (eg when the handle is embedded in a struct). Bug: 32089785 Test: builds Change-Id: I30c9aa9f1348fd5e72cd6d1e71d9ac3b4bd8ea8e
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