- // for the reasons of this unecessary notation at C++ level.
- void SetStartMethod( DicomDir::Method*,
- void* = NULL,
- DicomDir::Method* = NULL );
- void SetProgressMethod( DicomDir::Method*,
- void* = NULL,
- DicomDir::Method* = NULL );
- void SetEndMethod( DicomDir::Method*,
- void* = NULL,
- DicomDir::Method* = NULL );
- void SetStartMethodArgDelete( DicomDir::Method* );
- void SetProgressMethodArgDelete( DicomDir::Method* );
- void SetEndMethodArgDelete( DicomDir::Method* );
+ // for the reasons of this unnecessary notation at C++ level.
+ void SetStartMethod( DicomDir::Method *method,
+ void *arg = NULL );
+ void SetProgressMethod( DicomDir::Method *method,
+ void *arg = NULL );
+ void SetEndMethod( DicomDir::Method *method,
+ void *arg = NULL );
+ // Note: replace DicomDir::Method *method to void(*method)(void *) to
+ // avoid wrapping problems with the typemap conversions
+ void SetStartMethod( void(*method)(void *), // DicomDir::Method *method
+ void *arg,
+ void(*argDelete)(void *));
+ void SetProgressMethod( void(*method)(void *), // DicomDir::Method *method
+ void *arg,
+ void(*argDelete)(void *));
+ void SetEndMethod( void(*method)(void *), // DicomDir::Method *method
+ void *arg,
+ void(*argDelete)(void *));
+ void SetStartMethodArgDelete ( DicomDir::Method *method );
+ void SetProgressMethodArgDelete( DicomDir::Method *method );
+ void SetEndMethodArgDelete ( DicomDir::Method *method );