List Archive

Thread

Thread Index

Message

From: Paul Harris <harris.pc%gmail.com@localhost>
To: Thomas Klausner <tk%giga.or.at@localhost>
Subject: Re: Feature request: Abortable progress callbacks
Date: Mon, 13 Nov 2017 20:03:50 +0800

You might be able to abort if you throw an exception,
assuming libzip is exception safe, and you / it will clean up temporary files etc
as the stack unwinds...


On 13 November 2017 at 18:39, Thomas Klausner <tk%giga.or.at@localhost> wrote:

On Fri, Nov 10, 2017 at 10:07:53PM +0100, Andreas Falkenhahn wrote:
> So zip_register_progress_callback_with_state() allows me to implement some kind
> of status bar visualizing writing progress. However, AFAICS, it's not possible to
> implement an "Abort" or "Cancel" button because the callback doesn't provide
> any mechanism to tell zip_close() to stop its job. I think it would be nice to have
> a mechanism that would allow the implementation of an "Abort" button, e.g. by
> having a progress callback that returns TRUE to abort or FALSE to continue
> or something like that....
>
> Or is this already possible and I'm just not seeing it?

This is currently not supported. I've added it to the TODO file.

Cheers,
 Thomas


Made by MHonArc.