Deal with split between IFoo and IHwFoo.
Add two macros that allow us to:
- Retrieve an interface instance with
a specific name and version. The implementation
of this will try to retrieve the interface from
the hwservicemanager. If that fails, in the future
it can try to retrieve a pass-through version.
- Register an interface implementation. The implementation
of this automatically wraps it in a hwbinder object if
necessary.
Also changed IServiceManager to work correctly with the new
macros in libhwbinder.
TODO (b/30584126): the versions should not need to be passed in,
but instead be retrieved from the generated interfaces directly.
Bug: 30588200
Change-Id: I0567b6a0d3c34b6c8ee54445bea0a42f41a9fcc4
3 files changed