List Archive

Thread

Thread Index

Message

From: Andreas Falkenhahn <andreas%falkenhahn.com@localhost>
To: libzip mailing list <libzip-discuss%nih.at@localhost>
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                          
mailto:andreas%falkenhahn.com@localhost

Made by MHonArc.