aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-21 10:29:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-21 10:29:03 +0200
commit0dc03d406a9958adb27ff49f568685f6e80f01ce (patch)
treefe51d02935c81a27ffd82f21d0d4275432019ffe /build2/operation.hxx
parent75fc95426f2028044f3e1fccef261e76cda69892 (diff)
Add progress to dist meta-operation
Diffstat (limited to 'build2/operation.hxx')
-rw-r--r--build2/operation.hxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/build2/operation.hxx b/build2/operation.hxx
index 27f2356..fd8ca0c 100644
--- a/build2/operation.hxx
+++ b/build2/operation.hxx
@@ -293,8 +293,15 @@ namespace build2
// 1 - failures only (for pre-operations).
// 2 - all (for normal operations).
//
- void (*match) (const values&, action, action_targets&, uint16_t diag);
- void (*execute) (const values&, action, action_targets&, uint16_t diag);
+ // The false progress argument can be used to suppress progress. If it is
+ // true, then whether the progress is shown is meta operation-specific (in
+ // other words, you can suppress it but not force it).
+ //
+ void (*match) (const values&, action, action_targets&,
+ uint16_t diag, bool progress);
+
+ void (*execute) (const values&, action, action_targets&,
+ uint16_t diag, bool progress);
// Start of operation and meta-operation batches.
//
@@ -333,14 +340,16 @@ namespace build2
action_targets&);
void
- match (const values&, action, action_targets&, uint16_t diag);
+ match (const values&, action, action_targets&,
+ uint16_t diag, bool prog);
// Execute the action on the list of targets. This is the default
// implementation that does just that while issuing appropriate
// diagnostics (unless quiet).
//
void
- execute (const values&, action, const action_targets&, uint16_t diag);
+ execute (const values&, action, const action_targets&,
+ uint16_t diag, bool prog);
extern const meta_operation_info mo_noop;
extern const meta_operation_info mo_perform;