bt settings - how is it done ?


laczenJMS
 

Hi,

In the settings part of bt there seems to be a cool way to generate a
list of settings with their set, commit and export handlers. Items are
added to this list by a macro BT_SETTINGS_DEFINE() and all items seem
to be processed based upon linker defined _bt_stettings_start[] and
_bt_settings_end[].

This is a very nice expandable way to generate bt_settings. I am
however not sure if I completely understand how it works, is there a
place where I can get some more info on how this works ?

I am puzzled by the fact that mesh items are stored under
"/bt/mesh/...", this seems to mean that BT_SETTINGS_DEFINE() inserts
the handlers "under" "/bt".

Thanks,

Jehudi

Join devel@lists.zephyrproject.org to automatically receive all group messages.