Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb77561 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove btif_sendmsg

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I10487028fdaebd00fbbfde91311e43fe5ac7d26d
parent 1ceef27c
Loading
Loading
Loading
Loading
+3 −22
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@ using base::PlatformThread;
using bluetooth::Uuid;
using bluetooth::common::MessageLoopThread;

static void bt_jni_msg_ready(void* context);

/*******************************************************************************
 *  Constants & Macros
 ******************************************************************************/
@@ -132,12 +134,6 @@ static MessageLoopThread jni_thread("bt_jni_thread");
static base::AtExitManager* exit_manager;
static uid_set_t* uid_set;

/*******************************************************************************
 *  Static functions
 ******************************************************************************/
/* sends message to btif task */
static void btif_sendmsg(void* p_msg);

/*******************************************************************************
 *  Externs
 ******************************************************************************/
@@ -208,8 +204,7 @@ bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event,
    memcpy(p_msg->p_param, p_params, param_len); /* callback parameter data */
  }

  btif_sendmsg(p_msg);

  do_in_jni_thread(base::Bind(&bt_jni_msg_ready, p_msg));
  return BT_STATUS_SUCCESS;
}

@@ -293,20 +288,6 @@ static void bt_jni_msg_ready(void* context) {
  osi_free(p_msg);
}

/*******************************************************************************
 *
 * Function         btif_sendmsg
 *
 * Description      Sends msg to BTIF task
 *
 * Returns          void
 *
 ******************************************************************************/

void btif_sendmsg(void* p_msg) {
  do_in_jni_thread(base::Bind(&bt_jni_msg_ready, p_msg));
}

/*******************************************************************************
 *
 * Function         btif_init_bluetooth