7 The 'GP_ProgressCallback' is a structure that stores user-defined callback
8 function and user-defined pointer and percentage.
10 It is passed as last parameter to functions that would take some time to
11 complete and adds capability to track the operation progress as well as to
14 Currently it's used for filters and loaders.
17 -------------------------------------------------------------------------------
18 typdedef struct GP_ProgressCallback {
20 int (*callback)(struct GP_ProgressCallback *self);
22 } GP_ProgressCallback;
23 -------------------------------------------------------------------------------
25 If non 'NULL' progress callback structure is passed to a function, the
26 callback function is periodically called and the percentage is updated.
28 The return value from callback could abort the function execution. If non zero
29 value is returned operation is aborted, all memory freed etc. and in case of
30 bitmap loaders 'errno' is set to 'ECANCELED'.
32 The callback, if supported, is the last parameter of a function.
34 TIP: For example usage see progress callback
35 link:example_loaders_progress_callback.html[example].