mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
Services expose same sdk_headers as OFW Since settings apps use some of those symbols, need to include them Workaround is mock imports by #include the .c code Not ideal, but we only need access to basic load/save functions, and these apps are bundled with firmware anyway, so should be fine Not exposing via API and instead bundling via FAP also means less flash used, and RAM is not a concern with settings apps
8 lines
426 B
C
8 lines
426 B
C
// Since settings app is external, it cannot access firmware functions
|
|
// For simple utils like this, easier to include C code in app rather than exposing to API
|
|
// Instead of copying the file, can (ab)use the preprocessor to insert the source code here
|
|
// Then, we still use the Header from original code as if nothing happened
|
|
|
|
// bt_get_settings(), bt_set_settings()
|
|
#include <applications/services/bt/bt_service/bt_api.c>
|