aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/Interface.h
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-08 23:40:28 +1000
committerBenjamin Dobell <benjamin.dobell@glassechidna.com.au>2011-07-08 23:40:28 +1000
commit70c1e8e5bae373c4660e460703b577336caac8b0 (patch)
treebc3ae1734140887102e897ad4b57c0add392e66f /heimdall/source/Interface.h
parent5ce92c078692bb7fb5020d9ddec7ade6dacac1e9 (diff)
downloadexternal_heimdall-70c1e8e5bae373c4660e460703b577336caac8b0.zip
external_heimdall-70c1e8e5bae373c4660e460703b577336caac8b0.tar.gz
external_heimdall-70c1e8e5bae373c4660e460703b577336caac8b0.tar.bz2
1.3 beta
Diffstat (limited to 'heimdall/source/Interface.h')
-rw-r--r--heimdall/source/Interface.h13
1 files changed, 11 insertions, 2 deletions
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;
+ }
};
}