projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolved the code rule warnings
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-oal
/
bluez_hal
/
src
/
bt-hal-a2dp-sink-dbus-handler.c
diff --git
a/bt-oal/bluez_hal/src/bt-hal-a2dp-sink-dbus-handler.c
b/bt-oal/bluez_hal/src/bt-hal-a2dp-sink-dbus-handler.c
index
fb5ffa5
..
4f08b1b
100644
(file)
--- a/
bt-oal/bluez_hal/src/bt-hal-a2dp-sink-dbus-handler.c
+++ b/
bt-oal/bluez_hal/src/bt-hal-a2dp-sink-dbus-handler.c
@@
-49,7
+49,7
@@
void _bt_hal_unregister_a2dp_sink_dbus_handler_cb()
}
static void __bt_a2dp_sink_connect_cb(GDBusProxy *proxy, GAsyncResult *res,
}
static void __bt_a2dp_sink_connect_cb(GDBusProxy *proxy, GAsyncResult *res,
-
gpointer user_data)
+ gpointer user_data)
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
@@
-104,13
+104,13
@@
bt_status_t _bt_hal_dbus_handler_a2dp_sink_connect(bt_bdaddr_t *bd_addr)
int ret;
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();
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;
}
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
@@
-134,7
+134,7
@@
bt_status_t _bt_hal_dbus_handler_a2dp_sink_connect(bt_bdaddr_t *bd_addr)
}
static void __bt_a2dp_source_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res,
}
static void __bt_a2dp_source_disconnect_cb(GDBusProxy *proxy, GAsyncResult *res,
-
gpointer user_data)
+ gpointer user_data)
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
{
GError *g_error = NULL;
struct hal_ev_a2dp_conn_state ev;
@@
-190,13
+190,13
@@
bt_status_t _bt_hal_dbus_handler_a2dp_sink_disconnect(bt_bdaddr_t *bd_addr)
int ret;
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();
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;
}
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
@@
-235,13
+235,13
@@
bt_status_t _bt_hal_dbus_handler_enable_a2dp_sink(void)
}
gconn = _bt_hal_get_system_gconn();
}
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();
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;
}
ERR("adapter_path is NULL");
return BT_STATUS_FAIL;
}