btav_interface_t Struct Reference

#include <bt_av.h>

Data Fields

size_t size
bt_status_t(* init )(btav_callbacks_t *callbacks)
bt_status_t(* connect )(bt_bdaddr_t *bd_addr)
bt_status_t(* disconnect )(bt_bdaddr_t *bd_addr)
void(* cleanup )(void)
void(* set_audio_focus_state )(int focus_state)
void(* set_audio_track_gain )(float gain)

Detailed Description


  1. AVRCP 1.0 shall be supported initially. AVRCP passthrough commands shall be handled internally via uinput
  2. A2DP data path shall be handled via a socket pipe between the AudioFlinger android_audio_hw library and the Bluetooth stack.Represents the standard BT-AV interface. Used for both the A2DP source and sink interfaces.

Definition at line 82 of file bt_av.h.

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 98 of file bt_av.h.

bt_status_t(* connect)(bt_bdaddr_t *bd_addr)

connect to headset

Definition at line 92 of file bt_av.h.

bt_status_t(* disconnect)(bt_bdaddr_t *bd_addr)

dis-connect from headset

Definition at line 95 of file bt_av.h.

bt_status_t(* init)(btav_callbacks_t *callbacks)

Register the BtAv callbacks

Definition at line 89 of file bt_av.h.

void(* set_audio_focus_state)(int focus_state)

Sends Audio Focus State.

Definition at line 101 of file bt_av.h.

void(* set_audio_track_gain)(float gain)

Sets the audio track gain.

Definition at line 104 of file bt_av.h.

size_t size

set to sizeof(btav_interface_t)

Definition at line 85 of file bt_av.h.

The documentation for this struct was generated from the following file: