/* */ #ifndef D_CONSOLE_H #define D_CONSOLE_H #include "common.h" #include #include "OutputFile.h" namespace aria2 { typedef std::shared_ptr Console; namespace global { // Initialize console output facility. If the |suppress| is true, all // output sent to the console objects are discarded. void initConsole(bool suppress); // stdout is redirected to stderr. void redirectStdoutToStderr(); const Console& cout(); const Console& cerr(); } // namespace global } // namespace aria2 #endif // D_CONSOLE_H