#define RFCOMM_DEFAULT_PROFILE_CHANNEL 0
#define BT_AUDIO_SOURCE_MAX 2
-static char *avrcp_control_path = NULL;
-static char *avrcp_transport_path = NULL;
-
static GDBusConnection *system_conn;
static GDBusConnection *session_conn;
static GDBusProxy *manager_gproxy = NULL;
char *control_path;
char connected_address[BT_HAL_ADDRESS_STRING_SIZE];
- if (avrcp_control_path != NULL)
- return avrcp_control_path;
+ /* We can add the cache to get transport path for each device */
_bt_hal_convert_addr_type_to_string(connected_address, bd_addr->address);
if (control_path == NULL)
return NULL;
- avrcp_control_path = control_path;
DBG("control_path = %s", control_path);
return control_path;
}
char *transport_path;
char connected_address[BT_HAL_ADDRESS_STRING_SIZE];
- if (avrcp_transport_path != NULL)
- return avrcp_transport_path;
+ /* We can add the cache to get transport path for each device */
_bt_hal_convert_addr_type_to_string(connected_address, bd_addr->address);
if (transport_path == NULL)
return NULL;
- avrcp_transport_path = transport_path;
DBG("transport_path = %s", transport_path);
return transport_path;
}