int channel_id;
char *obj_path;
int fd;
-}hdp_conn_info_t;
+} hdp_conn_info_t;
typedef struct {
int id;
char *path;
int channel_type;
GSList *conn_list;
-}hdp_app_data_t;
+} hdp_app_data_t;
static handle_stack_msg event_cb = NULL;
static int latest_id = -1;
if (!event_cb) {
ERR("HDP dbus handler callback not registered");
g_free(conn_info);
- }
- else
+ } else
event_cb(HAL_EV_HDP_CONN_STATE, (void *)&ev, sizeof(ev));
DBG("-");
DBG("+");
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return NULL;
}
DBG("+");
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return -1;
}
}
static int __hdp_filter_subscribe_signal(GDBusConnection *conn,
- gboolean subscribe)
+ gboolean subscribe)
{
static guint subs_add_filter_id = 0;
if (conn == NULL)
return BT_HAL_ERROR_INVALID_PARAM;
- if (subscribe && subs_add_filter_id) {
- }
-
if (subscribe) {
if (subs_add_filter_id == 0) {
subs_add_filter_id = g_dbus_connection_signal_subscribe(
DBG("+");
hdp_conn = _bt_hal_get_system_gconn();
- if(!hdp_conn) {
+ if (!hdp_conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_HAL_ERROR_INTERNAL;
}
DBG("+");
hdp_conn = _bt_hal_get_system_gconn();
- if(!hdp_conn) {
+ if (!hdp_conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_HAL_ERROR_INTERNAL;
}
DBG("dev_path: %s", dev_path);
conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err);
- if(!conn) {
+ if (!conn) {
ERR("ERROR: Can't get on system bus [%s]", err->message);
g_clear_error(&err);
g_free(dev_path);
DBG("+");
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}
}
conn = _bt_hal_get_system_gconn();
- if(!conn) {
+ if (!conn) {
ERR("_bt_hal_get_system_gconn returned NULL, return");
return BT_STATUS_FAIL;
}