Parent: 71e455c8b963e27d01250c012f91625ecfc11e90
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-11-25 14:45:59
Tree: c99c52e1646e73646bfa634bd946bfe9bc6ba8fe
android/hal-bluetooth: Use static memory for enum convertion There is no need to use dynamic allocation for enum properties convertion. Each property type can be present only once in properties callback so using static allocation is safe. This also remove need for cleanup properties after HAL callback is called making code simpler.
Diffstat
| M | android/hal-bluetooth.c | | | 109 | +++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 37 insertions(+), 72 deletions(-)