List Archive


Thread Index


From: Andreas Falkenhahn <>
To: libzip mailing list <>
Subject: Progress callbacks - no userdata pointer?
Date: Thu, 9 Nov 2017 17:52:40 +0100

Is it true that progress callbacks in libzip don't provide any userdata
mechanism or am I missing something here? 

I see that progress' callbacks are defined like this

     typedef void (*zip_progress_callback_t)(double);

But this doesn't allow me to pass any userdata to the callback which
forces me to use global variables to access certain data from the
callback but that is rather ugly...

Best regards,
 Andreas Falkenhahn                 

Made by MHonArc.