Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d0880e81 authored by Orlando Arbildo's avatar Orlando Arbildo
Browse files

Added local_downcast function for binder native

Added a local_downcast function to be able to cast
a Binder Native object back to its base object.
WIth this change the cast of a Binder native object
will look like this:

// my_foo will be an Option<&MyFoo>
let my_foo = bn_foo.downcast_binder::<MyFoo>();

This change depends on changes to the AIDL compiler
to modify required lifetimes on the autogenerated
code.

Test: CI
Bug: 278780666
Change-Id: I00958df53bb9f052347992ada121d7febfc87dc5
parent 373a2527
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment