Suppress console output for none-standalone mode

This commit is contained in:
Tatsuhiro Tsujikawa 2013-05-02 11:30:42 +09:00
parent 315c05ea3c
commit d07b3ff8d9
6 changed files with 44 additions and 34 deletions

View file

@ -37,22 +37,18 @@
#include "common.h"
#include "SharedHandle.h"
#ifdef __MINGW32__
# include "WinConsoleFile.h"
#else // !__MINGW32__
# include "BufferedFile.h"
#endif // !__MINGW32__
#include "OutputFile.h"
namespace aria2 {
#ifdef __MINGW32__
typedef SharedHandle<WinConsoleFile> Console;
#else // !__MINGW32__
typedef SharedHandle<BufferedFile> Console;
#endif // !__MINGW32__
typedef SharedHandle<OutputFile> 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);
const Console& cout();
const Console& cerr();