Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a context-aware progress monitor pointer
The progress_callback field in the ETEXT_DESC monitor type does not take any 'context' parameter, which may make implementing callback functions difficult and may require use of global variables. The new function receives the ETEXT_DESC pointer as an argument. This makes it possible to share the cancel_this field as context carrier if required. The change is backwards-compatible: the old pointer remains as a member of the class, and the default value for the new pointer is a function calling the classic progress notifier. This way the code unaware of the new member will continue to work as before.
- Loading branch information
Jaroslaw Kubik
committed
May 29, 2018
1 parent
7bc8255
commit 217e5e5
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters