diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2012-10-01 12:43:05 +1000 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2012-10-02 01:41:25 +1000 |
commit | 6cd6b35c737e0e4042a8fd79af1decc9f10ed84b (patch) | |
tree | 89625119662474ef30c84f410c056343d412121b /heimdall/source/FlashPartFileTransferPacket.h | |
parent | 66f1e84dd2eafc4dd617f10f832c274885a8a28c (diff) | |
download | external_heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.zip external_heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.gz external_heimdall-6cd6b35c737e0e4042a8fd79af1decc9f10ed84b.tar.bz2 |
Heimdall 1.4 RC1:
- Massive refactoring.
- Support for Qualcomm based devices.
- Print PIT from file.
- Use partition names as arguments e.g. --HIDDEN, --KERNEL, --MOVINAND etc.
- Heimdall Frontend UI improvements.
- And much more...
Diffstat (limited to 'heimdall/source/FlashPartFileTransferPacket.h')
-rw-r--r-- | heimdall/source/FlashPartFileTransferPacket.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/heimdall/source/FlashPartFileTransferPacket.h b/heimdall/source/FlashPartFileTransferPacket.h index a444211..dcf3422 100644 --- a/heimdall/source/FlashPartFileTransferPacket.h +++ b/heimdall/source/FlashPartFileTransferPacket.h @@ -30,34 +30,26 @@ namespace Heimdall {
private:
- unsigned short unknown;
- unsigned int transferCount;
+ unsigned int sequenceByteCount;
public:
- FlashPartFileTransferPacket(unsigned short unknown, unsigned int transferCount)
+ FlashPartFileTransferPacket(unsigned int sequenceByteCount)
: FileTransferPacket(FileTransferPacket::kRequestPart)
{
- this->unknown = unknown;
- this->transferCount = transferCount;
+ this->sequenceByteCount = sequenceByteCount;
}
- unsigned short GetUnknown(void) const
+ unsigned int GetSequenceByteCount(void) const
{
- return (unknown);
- }
-
- unsigned int GetTransferCount(void) const
- {
- return (transferCount);
+ return (sequenceByteCount);
}
void Pack(void)
{
FileTransferPacket::Pack();
- PackShort(FileTransferPacket::kDataSize, unknown);
- PackInteger(FileTransferPacket::kDataSize + 2, transferCount);
+ PackInteger(FileTransferPacket::kDataSize, sequenceByteCount);
}
};
}
|