From 70c1e8e5bae373c4660e460703b577336caac8b0 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Fri, 8 Jul 2011 23:40:28 +1000 Subject: 1.3 beta --- heimdall/source/Interface.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'heimdall/source/Interface.h') diff --git a/heimdall/source/Interface.h b/heimdall/source/Interface.h index 7b1741d..81f17e5 100644 --- a/heimdall/source/Interface.h +++ b/heimdall/source/Interface.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2010 Benjamin Dobell, Glass Echidna +/* Copyright (c) 2010-2011 Benjamin Dobell, Glass Echidna Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -207,15 +207,18 @@ namespace Heimdall { kCommonValuelessArgVerbose = 0, kCommonValuelessArgNoReboot, + kCommonValuelessArgStdoutErrors, kCommonValuelessArgCount }; private: + + static bool stdoutErrors; static const char *version; static const char *usage; - static const char *releaseInfo; + static const char *releaseInfo; // Flash arguments static string flashValueArguments[kFlashValueArgCount]; @@ -243,6 +246,7 @@ namespace Heimdall static void Print(const char *format, ...); static void PrintError(const char *format, ...); + static void PrintErrorSameLine(const char *format, ...); static void PrintVersion(void); static void PrintUsage(void); @@ -254,6 +258,11 @@ namespace Heimdall { return (flashValueArguments[kFlashValueArgPit]); } + + static void SetStdoutErrors(bool enabled) + { + stdoutErrors = enabled; + } }; } -- cgit v1.1