projects
/
swift-upb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f398253
)
nicer constructor
author
Victor Grishchenko
<victor.grishchenko@gmail.com>
Mon, 31 May 2010 12:34:52 +0000
(14:34 +0200)
committer
Victor Grishchenko
<victor.grishchenko@gmail.com>
Mon, 31 May 2010 12:34:52 +0000
(14:34 +0200)
swift.h
patch
|
blob
|
history
diff --git
a/swift.h
b/swift.h
index
77f8b6b
..
e87332e
100644
(file)
--- a/
swift.h
+++ b/
swift.h
@@
-129,7
+129,8
@@
namespace swift {
callback_t cb;
/** aggregation level (do not report smaller events). */
uint8_t agg;
- TransferProgressCallback(callback_t callback) : cb(callback), agg(0) {}
+ TransferProgressCallback(callback_t callback, uint8_t aggregate=0)
+ : cb(callback), agg(aggregate) {}
TransferProgressCallback() : cb(NULL), agg(0) {}
};