summaryrefslogtreecommitdiff
path: root/src/progress.h
blob: 33c340cfe8b55c746aaf0c998d087c7e1d81aa11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef PROGRESS_H_
#define PROGRESS_H_

// 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 { };

#endif
contact: Jan Huwald // Impressum