/* Returns: TRUE if the drive has been poll_for_mediaed successfully, FALSE otherwise.  */
gboolean g_drive_poll_for_media_finish(GDrive *drive, GAsyncResult *result, GError **error)
/* Returns: TRUE if the drive has been poll_for_mediaed successfully, FALSE otherwise.  */
gboolean g_drive_poll_for_media_finish(GDrive *drive, GAsyncResult *result, GError **error)
{
  GDriveIface *iface;
  g_return_val_if_fail (G_IS_DRIVE (drive), FALSE);
  g_return_val_if_fail (G_IS_ASYNC_RESULT (result), FALSE);
  if (g_async_result_legacy_propagate_error (result, error))
    return FALSE;
  else if (g_async_result_is_tagged (result, g_drive_poll_for_media))
    return g_task_propagate_boolean (G_TASK (result), error);
  iface = G_DRIVE_GET_IFACE (drive);
  return (* iface->poll_for_media_finish) (drive, result, error);
}