io = g_io_channel_unix_new(conn_info->hal_fd);
conn_info->hal_watch = g_io_add_watch(io, cond, app_event_cb, info);
g_io_channel_set_flags(io, G_IO_FLAG_NONBLOCK, NULL);
+ g_io_channel_set_encoding(io, NULL, NULL);
g_io_channel_unref(io);
/* Handle l2cap_le events from bluez */
io = g_io_channel_unix_new(conn_info->stack_fd);
conn_info->bt_watch = g_io_add_watch(io, cond, stack_event_cb, info);
g_io_channel_set_flags(io, G_IO_FLAG_NONBLOCK, NULL);
+ g_io_channel_set_encoding(io, NULL, NULL);
g_io_channel_unref(io);
return 0;
io = g_io_channel_unix_new(server_data->server_fd);
server_data->server_watch = g_io_add_watch(io, cond, __server_event_cb, server_data);
g_io_channel_set_flags(io, G_IO_FLAG_NONBLOCK, NULL);
+ g_io_channel_set_encoding(io, NULL, NULL);
g_io_channel_unref(io);
INFO("Adding server information to l2cap_le_servers list");