summaryrefslogtreecommitdiffstats
path: root/heimdall/source/EnableTFlashPacket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--heimdall/source/EnableTFlashPacket.h (renamed from heimdall/source/TFlashModeResponse.h)31
1 files changed, 6 insertions, 25 deletions
diff --git a/heimdall/source/TFlashModeResponse.h b/heimdall/source/EnableTFlashPacket.h
index a9a3558..7b22ebd 100644
--- a/heimdall/source/TFlashModeResponse.h
+++ b/heimdall/source/EnableTFlashPacket.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
+/* Copyright (c) 2010-2017 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
@@ -18,39 +18,20 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.*/
-#ifndef TFLASHMODERESPONSE_H
-#define TFLASHMODERESPONSE_H
+#ifndef ENABLETFLASHPACKET_H
+#define ENABLETFLASHPACKET_H
// Heimdall
-#include "ResponsePacket.h"
+#include "SessionSetupPacket.h"
namespace Heimdall
{
- class TFlashModeResponse : public ResponsePacket
+ class EnableTFlashPacket : public SessionSetupPacket
{
- private:
-
- unsigned int result;
-
public:
- TFlashModeResponse() : ResponsePacket(ResponsePacket::kResponseTypeSessionSetup)
- {
- }
-
- unsigned int GetResult(void) const
+ EnableTFlashPacket() : SessionSetupPacket(SessionSetupPacket::kEnableTFlash)
{
- return (result);
- }
-
- bool Unpack(void)
- {
- if (!ResponsePacket::Unpack())
- return (false);
-
- result = UnpackInteger(ResponsePacket::kDataSize);
-
- return (true);
}
};
}