#include "btif/include/btif_sock.h"
#include "main/shim/controller.h"
-void btu_task_shut_down();
+void main_thread_shut_down();
+void main_thread_start_up();
void BTA_dm_on_hw_on();
void BTA_dm_on_hw_off();
static void event_signal_stack_up(void* context);
static void event_signal_stack_down(void* context);
-void main_thread_start_up();
-
// Unvetted includes/imports, etc which should be removed or vetted in the
// future
static future_t* hack_future;
module_shut_down(get_module(BTSNOOP_MODULE));
}
- btu_task_shut_down();
+ main_thread_shut_down();
+
+ module_clean_up(get_module(BTE_LOGMSG_MODULE));
+
+ btu_free_core();
module_shut_down(get_module(CONTROLLER_MODULE)); // Doesn't do any work, just
// puts it in a restartable
}
}
-void btu_task_shut_down() {
- // Shutdown message loop on task completed
- main_thread.ShutDown();
-
- module_clean_up(get_module(BTE_LOGMSG_MODULE));
-
- btu_free_core();
-}
+void main_thread_shut_down() { main_thread.ShutDown(); }