diff options
author | regnat <rg@regnat.ovh> | 2020-06-08 17:16:52 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-06-08 17:16:52 +0200 |
commit | 801112de1af8e519e29e1e1c678f97de45a8c49d (patch) | |
tree | 2a78ac14d600486665ade3f8f1d3cf026b349f99 /src/libmain/progress-bar.hh | |
parent | c27f92698bbbb99df3c4403db6590276318940a0 (diff) |
Move progress-bar.cc to libmain
Needed so that we can include it as a logger in loggers.cc without
adding a dependency on nix
This also requires moving names.hh to libutil to prevent a circular
dependency between libmain and libexpr
Diffstat (limited to 'src/libmain/progress-bar.hh')
-rw-r--r-- | src/libmain/progress-bar.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libmain/progress-bar.hh b/src/libmain/progress-bar.hh new file mode 100644 index 000000000..60d0a2076 --- /dev/null +++ b/src/libmain/progress-bar.hh @@ -0,0 +1,13 @@ +#pragma once + +#include "logging.hh" + +namespace nix { + +Logger* makeProgressBar(bool printBuildLogs = false); + +void startProgressBar(bool printBuildLogs = false); + +void stopProgressBar(); + +} |