}
static void __bt_av_connect_cb(GDBusProxy *proxy, GAsyncResult *res,
- gpointer user_data)
+ gpointer user_data)
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
GDBusConnection *conn;
int ret;
- if(!bd_addr) {
+ if (!bd_addr) {
ERR("bd_addr is NULL, return");
return BT_STATUS_PARM_INVALID;
}
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
}
static void __bt_av_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res,
- gpointer user_data)
+ gpointer user_data)
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
GDBusConnection *conn;
int ret;
- if(!bd_addr) {
+ if (!bd_addr) {
ERR("bd_addr is NULL, return");
return BT_STATUS_PARM_INVALID;
}
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
}
gconn = _bt_hal_get_system_gconn();
- if(!gconn) {
+ if (!gconn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
adapter_path = _bt_hal_get_adapter_path();
- if(!adapter_path) {
+ if (!adapter_path) {
ERR("adapter_path is NULL");
return BT_STATUS_FAIL;
}