diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-09-22 16:30:13 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-22 16:31:09 +0200 |
commit | 0ff83edff0c13fcea2a2a1b21365867fd01e098a (patch) | |
tree | e0ddd7f0f59e05e789608d8411dd6673f593694c /android/hal-utils.h | |
parent | 6024744b9e455c04564cc26d29f2b34aaf7d9fbf (diff) | |
download | bluez-0ff83edff0c13fcea2a2a1b21365867fd01e098a.tar.gz |
android/hal: Add helper for quering config from Android properties
Helper searches config in "persis.sys.bluetooth." and "ro.bluetooth."
namespaces and allows to fallback to custom property if none is
found.
Diffstat (limited to 'android/hal-utils.h')
-rw-r--r-- | android/hal-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/hal-utils.h b/android/hal-utils.h index a0aab573e..a2ae0f48b 100644 --- a/android/hal-utils.h +++ b/android/hal-utils.h @@ -36,6 +36,8 @@ void str2bt_uuid_t(const char *str, bt_uuid_t *uuid); const char *btproperty2str(const bt_property_t *property); const char *bdaddr2str(const bt_bdaddr_t *bd_addr); +int get_config(const char *config_key, char *value, const char *fallback); + /* * Begin mapping section * |