From 8cb7f6ee8f872938e257541c07d0e4b2ad0e3f35 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Sun, 17 Jul 2011 19:50:07 +1000 Subject: - Added Utilities tab to Heimdall Frontend. - Fixed Heimdall command line support for PIT files without a reference to themselves. - Added tool tips to Heimdall Frontend. - Added heimdall 'info' and 'download-pit' actions. - Made 'detect' action return 0 if a device is detected, 1 otherwise. --- heimdall/source/Interface.h | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'heimdall/source/Interface.h') diff --git a/heimdall/source/Interface.h b/heimdall/source/Interface.h index 81f17e5..338445b 100644 --- a/heimdall/source/Interface.h +++ b/heimdall/source/Interface.h @@ -76,6 +76,8 @@ namespace Heimdall kActionVersion, kActionHelp, kActionDetect, + kActionDownloadPit, + kActionInfo, kActionCount }; @@ -182,6 +184,18 @@ namespace Heimdall kHelpValuelessArgCount = 0 }; + // Info value arguments + enum + { + kInfoValueArgCount = 0 + }; + + // Info valueless arguments + enum + { + kInfoValuelessArgCount = 0 + }; + // Detect value arguments enum { @@ -194,6 +208,19 @@ namespace Heimdall kDetectValuelessArgCount = 0 }; + // Download PIT value arguments + enum + { + kDownloadPitValueArgOutput = 0, + kDownloadPitValueArgCount + }; + + // Download PIT valueless arguments + enum + { + kDownloadPitValuelessArgCount = 0 + }; + // Common value arguments enum { @@ -218,7 +245,8 @@ namespace Heimdall static const char *version; static const char *usage; - static const char *releaseInfo; + static const char *releaseInfo; + static const char *extraInfo; // Flash arguments static string flashValueArguments[kFlashValueArgCount]; @@ -227,6 +255,10 @@ namespace Heimdall static string flashValuelessArguments[kFlashValuelessArgCount]; static string flashValuelessShortArguments[kFlashValuelessArgCount]; + // Download PIT arguments + static string downloadPitValueArguments[kDownloadPitValueArgCount]; + static string downloadPitValueShortArguments[kDownloadPitValueArgCount]; + // Dump arguments static string dumpValueArguments[kDumpValueArgCount]; static string dumpValueShortArguments[kDumpValueArgCount]; @@ -251,6 +283,7 @@ namespace Heimdall static void PrintVersion(void); static void PrintUsage(void); static void PrintReleaseInfo(void); + static void PrintFullInfo(void); static void PrintPit(const PitData *pitData); -- cgit v1.1