From: Victor Grishchenko Date: Mon, 31 May 2010 12:34:52 +0000 (+0200) Subject: nicer constructor X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=59d7e46bc450d31801175bd82952cc7b4a7bb716;p=swift-upb.git nicer constructor --- diff --git a/swift.h b/swift.h index 77f8b6b..e87332e 100644 --- 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) {} };