| synopsis || arguments || prev |
void kdu_customize_warnings( kdu_message * handler)
Java: void Kdu_customize_warnings( Kdu_message handler)
[Declared in "../coresys/common/kdu_messaging.h"]
This function can and usually should be used to customize the behaviour of warning messages produced using the kdu_warning object. By default, warning messages will simply be discarded.
All text delivered to a kdu_warning object will be passed to handler→put_text (unless handler is NULL) and all calls to kdu_warning::flush will be generate calls to handler→flush, with the end_of_message argument set to false (regardless of the value of this argument in the call to kdu_warning::flush). When any kdu_warning object is destroyed, handler→flush will be called with an end_of_message argument equal to true.