diff options
author | Steven Moreland <smoreland@google.com> | 2018-10-09 15:54:27 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2018-10-09 15:54:27 -0700 |
commit | 4cee37c83892e64ab19e815ad43cd76cda6b51d1 (patch) | |
tree | f771da3d7a5a90b666db01632ab25eb1a464c11b /base | |
parent | 6d50315da66f54551ceb30eaa2ba0f1e5d94e61c (diff) | |
download | libhidl-4cee37c83892e64ab19e815ad43cd76cda6b51d1.tar.gz |
MQDescriptor: warn about handle ownership
Ideally these should be explicit, but warning in the header for the
time being.
Bug: N/A
Test: N/A
Change-Id: I3596c6c0f6a1157ce859e29701686b06cce6aefe
Diffstat (limited to 'base')
-rw-r--r-- | base/include/hidl/MQDescriptor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/include/hidl/MQDescriptor.h b/base/include/hidl/MQDescriptor.h index a8a176b..0f61cb5 100644 --- a/base/include/hidl/MQDescriptor.h +++ b/base/include/hidl/MQDescriptor.h @@ -59,10 +59,12 @@ enum MQFlavor : uint32_t { template <typename T, MQFlavor flavor> struct MQDescriptor { + // Takes ownership of handle MQDescriptor( const std::vector<GrantorDescriptor>& grantors, native_handle_t* nHandle, size_t size); + // Takes ownership of handle MQDescriptor(size_t bufferSize, native_handle_t* nHandle, size_t messageSize, bool configureEventFlag = false); |