return BT_SUCCESS;
}
+int bt_socket_listen_and_accept_rfcomm(int socket_fd,
+ int max_pending_connections)
+{
+ struct spp_context *spp_ctx;
+
+ spp_ctx = find_spp_context_from_socketfd(socket_fd);
+ if (spp_ctx == NULL)
+ return BT_ERROR_OPERATION_FAILED;
+
+ if (max_pending_connections > 0)
+ spp_ctx->max_pending = max_pending_connections;
+ else
+ spp_ctx->max_pending = -1;
+
+ spp_ctx->is_accept = true;
+
+ return BT_SUCCESS;
+}
+
int bt_socket_set_connection_state_changed_cb(
bt_socket_connection_state_changed_cb callback,
void *user_data)