btstack_run_loop: support de-init

This commit is contained in:
Matthias Ringwald 2021-01-15 18:00:55 +01:00
parent 172c13e70a
commit 3a2e210743
2 changed files with 9 additions and 0 deletions

View File

@ -183,3 +183,7 @@ void btstack_run_loop_init(const btstack_run_loop_t * run_loop){
the_run_loop->init();
}
void btstack_run_loop_deinit(void){
the_run_loop = NULL;
}

View File

@ -220,6 +220,11 @@ int btstack_run_loop_remove_data_source(btstack_data_source_t * data_source);
*/
void btstack_run_loop_execute(void);
/**
* @brief De-Init Run Loop
*/
void btstack_run_loop_deinit(void);
/* API_END */
#if defined __cplusplus