2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2010-02-09 16:48:09 +03:00
|
|
|
|
|
|
|
// Reset to 0 in _prep() and increased for each Node instance in progress_prepare()
|
|
|
|
extern int progress_report_count;
|
|
|
|
|
|
|
|
extern void (*progress_report_f)(const class AbstractNode*, void*, int);
|
|
|
|
extern void *progress_report_userdata;
|
|
|
|
|
|
|
|
void progress_report_prep(AbstractNode *root, void (*f)(const class AbstractNode *node, void *userdata, int mark), void *userdata);
|
|
|
|
void progress_report_fin();
|
|
|
|
void progress_update(const AbstractNode *node, int mark);
|
|
|
|
|
|
|
|
class ProgressCancelException { };
|