diff options
author | Steven Moreland <smoreland@google.com> | 2018-07-24 13:13:46 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2018-07-24 13:13:46 -0700 |
commit | c78b6299637225873060a8782d12f495398f30ba (patch) | |
tree | e95750a26616bcc87892d8deb98f31f997abdb9a /transport/base | |
parent | deacf14671c2f92b667a381fff9c1bc0433b2691 (diff) | |
download | libhidl-c78b6299637225873060a8782d12f495398f30ba.tar.gz |
Documentation to fix order of hidl unlinkToDeath.
Calling unlinkToDeath after linking to death multiple
times will unregister the most recently registered
death recipient as expected.
Bug: 67503915
Test: hidl_test, hidl_test_java
Change-Id: Ifd79999f6899fe698dba2f937d22ccf9e4cfd839
Diffstat (limited to 'transport/base')
-rw-r--r-- | transport/base/1.0/IBase.hal | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/transport/base/1.0/IBase.hal b/transport/base/1.0/IBase.hal index e862ec8..22007f0 100644 --- a/transport/base/1.0/IBase.hal +++ b/transport/base/1.0/IBase.hal @@ -87,7 +87,10 @@ interface IBase { linkToDeath(death_recipient recipient, uint64_t cookie) generates (bool success); /* - * Unregisters a previously registered death recipient. + * Unregisters the registered death recipient. If this service was registered + * multiple times with the same exact death recipient, this unlinks the most + * recently registered one. + * * @param recipient a previously registered hidl_death_recipient callback * @return success whether the death recipient was unregistered successfully. */ |