OSDN Git Service

Flatten BTU_ShutDown
authorZach Johnson <zachoverflow@google.com>
Thu, 13 Aug 2020 17:55:39 +0000 (10:55 -0700)
committerZach Johnson <zachoverflow@google.com>
Thu, 13 Aug 2020 17:55:39 +0000 (10:55 -0700)
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I798bca68f0598901ead357432eaf9cc0fd2cc193

btif/src/stack_manager.cc
stack/btu/btu_init.cc

index f1e7579..fe86a52 100644 (file)
@@ -69,7 +69,7 @@
 #include "btif/include/btif_sock.h"
 #include "main/shim/controller.h"
 
-void BTU_ShutDown(void);
+void btu_task_shut_down();
 void BTA_dm_on_hw_on();
 void BTA_dm_on_hw_off();
 
@@ -296,7 +296,7 @@ static void event_shut_down_stack(UNUSED_ATTR void* context) {
     module_shut_down(get_module(BTSNOOP_MODULE));
   }
 
-  BTU_ShutDown();
+  btu_task_shut_down();
 
   module_shut_down(get_module(CONTROLLER_MODULE));  // Doesn't do any work, just
                                                     // puts it in a restartable
index a848056..6db64fa 100644 (file)
@@ -29,8 +29,6 @@
 #include "l2c_api.h"
 #include "sdpint.h"
 
-void btu_task_shut_down();
-
 /*****************************************************************************
  *
  * Function         btu_free_core
@@ -51,7 +49,3 @@ void btu_free_core() {
 
   btm_free();
 }
-
-void BTU_ShutDown() {
-  btu_task_shut_down();
-}