diff options
| author | Balraj Selvaraj <bselva@codeaurora.org> | 2015-10-20 18:49:06 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-20 23:40:02 -0700 |
| commit | b9ad4f0dd8903e739b14602184e1824ea5227b98 (patch) | |
| tree | edd0c4dc735983b8221cf8f547e146a5f1944d87 /osi/include | |
| parent | 871c1edaf17bbbd1b10f6b332e06ab13119bd956 (diff) | |
| download | android_system_bt-b9ad4f0dd8903e739b14602184e1824ea5227b98.tar.gz android_system_bt-b9ad4f0dd8903e739b14602184e1824ea5227b98.tar.bz2 android_system_bt-b9ad4f0dd8903e739b14602184e1824ea5227b98.zip | |
Bluetooth: OSI: Immediately save bt_config file to NVRAM
Fix to avoid the "bt_config.conf" file corruption from
the file system. This will avoid losing the paired
information in some corner case, such as abrupt power
off and on. This patch will ensure bt_config is saved to
NVRAM.
CRs-Fixed: 927450
Change-Id: I7a13feece1253681be97ca2c305463197b7f68d7
Diffstat (limited to 'osi/include')
| -rw-r--r-- | osi/include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/osi/include/config.h b/osi/include/config.h index ab3096d4e..ea96058da 100644 --- a/osi/include/config.h +++ b/osi/include/config.h @@ -125,3 +125,6 @@ const char *config_section_name(const config_section_node_t *iter); // and special formatting in the original file will be lost. Neither |config| nor // |filename| may be NULL. bool config_save(const config_t *config, const char *filename); + +// flush the cofig file immediately +void config_flush (const char *filename); |
