Change-Id: I2861b67c6f04ac5e5e6943f4c3f7e6422368a529
Signed-off-by: Wu Jiangbo <jiangbox.wu@intel.com>
spp_ctx->uuid);
}
+int bt_socket_listen(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;
+
+ return BT_SUCCESS;
+}
+
int bt_socket_set_connection_state_changed_cb(
bt_socket_connection_state_changed_cb callback,
void *user_data)