Logo Search packages:      
Sourcecode: odyssey version File versions

void Device::set_progress_cb ( bool(*)(void *data, long addr, int percent)  cb,
void *  data = NULL 
) [inherited]

Set the current progress callback. The callback will be called every time a word is read/written to the device. The callback also returns a boolean value indicating if the operation should continue. This allows a user interface to gracefully stop an operation.

cb The callback function to set. Set this to NULL to disable the callback.
data An arbitrary pointer that is passed directly to the callback function.

Definition at line 82 of file Device.cxx.

References Device::progress_cb, and Device::progress_cb_data.

Referenced by Device::Device().

      this->progress_cb = cb;
      this->progress_cb_data = data;

Generated by  Doxygen 1.6.0   Back to index