7621b3267fd2ff1068d7aa7d75441d68646226ab |
|
19-Mar-2017 |
Brian Duddie <bduddie@google.com> |
Reorganize HostProtocol, add hub info query Split HostProtocol into three classes: one for the host, one for CHRE, and one that's shared. Since the protocol is not fully symmetric (e.g. messages to/from nanoapps are the same in both directions, but only one side will ever request hub info, and only CHRE will ever construct the response), this avoids pulling in unneeded code. Also, add support for querying hub information from CHRE to be used in the HAL, and rework the HostLink pending outbound message queue to be more generic. Test: run chre_test_client Change-Id: Id88485b8c5a085eb886d4059840ac640c0383c88
/system/chre/platform/shared/host_protocol_common.cc
|