OSDN Git Service

android/hal: Add support for repacking received IPC data to HAL data
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 30 Oct 2013 15:30:54 +0000 (16:30 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 31 Oct 2013 08:55:43 +0000 (10:55 +0200)
commit08e6aadd83049ae457c9a07649d73796184825b5
treed23906020acada7ef1ab9451da1c0cde18a00d7c
parenta49fa76fa8651aafd11dc0c6bb6130220fc1bed9
android/hal: Add support for repacking received IPC data to HAL data

Some HAL defined types that are passed as type-len-value in properties
callback needs to be repacked at runtime to match defined types.

This is due to HAL using data types without strict refined sizes like
enums or unpacked structures. This is needed only if data is passed as
TLV. With data passed to callbacks as parameters compiler will handle
types convertion.

Currently only enum types are supported.
android/hal-bluetooth.c