wifi/1.0/default/hidl_return_util.h
0 → 100644
+109
−0
+70
−39
+12
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
The helper functions are used to invoke an internal method which implements the functionality and then invoke the HIDL callback with the return values. HIDL's auto-generated code uses on-stack callbacks to return non-primitive/multiple values from HIDL methods. This is unwieldy and the implementation of the method's functionality gets mixed up with the semantics of handling these callbacks. This tries to hide the semantics of HIDL auto-generated code from the functionality. Converted all IWifi methods to use these new helper functions. Bug: 32337072 Test: Compiles Change-Id: I57cbafcc2ecb52ec5055f4bd80bc064bd438b850