From ca5bb76d2b8f65aa97e50b633f828c1deb241526 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Fri, 11 Jul 2008 16:51:25 +0000 Subject: Delete the svn:executable property and set svn:eol-style to native for all those text files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18012 a1c6a512-1295-4272-9138-f99709370657 --- .../pelib-0.9/pelib/RelocationsDirectory.h | 140 ++++++++++----------- 1 file changed, 70 insertions(+), 70 deletions(-) mode change 100755 => 100644 utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h (limited to 'utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h') diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h b/utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h old mode 100755 new mode 100644 index 60383381a3..0fc10500e0 --- a/utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h +++ b/utils/zenutils/libraries/pelib-0.9/pelib/RelocationsDirectory.h @@ -1,70 +1,70 @@ -/* -* Relocations.h - Part of the PeLib library. -* -* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) -* All rights reserved. -* -* This software is licensed under the zlib/libpng License. -* For more details see http://www.opensource.org/licenses/zlib-license.php -* or the license information file (license.htm) in the root directory -* of PeLib. -*/ - -#ifndef RELOCATIONSDIRECTORY_H -#define RELOCATIONSDIRECTORY_H - -namespace PeLib -{ - /// Class that handles the relocations directory. - /** - * This class handles the relocations directory. - **/ - class RelocationsDirectory - { - private: - std::vector m_vRelocations; ///< Used to store the relocation data. - - void read(InputBuffer& inputbuffer, unsigned int uiSize); - - public: - /// Returns the number of relocations in the relocations directory. - unsigned int calcNumberOfRelocations() const; // EXPORT - /// Returns the number of relocation data entries of a specific relocation. - unsigned int calcNumberOfRelocationData(unsigned int ulRelocation) const; // EXPORT - - /// Read a file's relocations directory. - int read(const std::string& strFilename, unsigned int uiOffset, unsigned int uiSize); // EXPORT - int read(const unsigned char* buffer, unsigned int buffersize); // EXPORT - /// Rebuilds the relocations directory. - void rebuild(std::vector& vBuffer) const; // EXPORT - /// Returns the size of the relocations directory. - unsigned int size() const; // EXPORT - /// Writes the relocations directory to a file. - int write(const std::string& strFilename, unsigned int dwOffset) const; // EXPORT - - /// Returns the VA of a relocation. - dword getVirtualAddress(unsigned int ulRelocation) const; // EXPORT - /// Returns the SizeOfBlock value of a relocation. - dword getSizeOfBlock(unsigned int ulRelocation) const; // EXPORT - /// Returns the RelocationData of a relocation. - word getRelocationData(unsigned int ulRelocation, unsigned int ulDataNumber) const; // EXPORT - - /// Changes the relocation data of a relocation. - void setRelocationData(unsigned int ulRelocation, unsigned int ulDataNumber, word wData); // EXPORT - - /// Changes the VirtualAddress of a relocation. - void setVirtualAddress(unsigned int ulRelocation, dword dwValue); // EXPORT - /// Changes the SizeOfBlock of a relocation. - void setSizeOfBlock(unsigned int ulRelocation, dword dwValue); // EXPORT - - void addRelocation(); // EXPORT - /// Adds new data to a relocation. - void addRelocationData(unsigned int ulRelocation, word wValue); // EXPORT - /// Removes data from a relocation. -// void removeRelocationData(unsigned int ulRelocation, word wValue); // EXPORT - void removeRelocation(unsigned int index); // EXPORT - void removeRelocationData(unsigned int relocindex, unsigned int dataindex); // EXPORT - }; -} - -#endif +/* +* Relocations.h - Part of the PeLib library. +* +* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) +* All rights reserved. +* +* This software is licensed under the zlib/libpng License. +* For more details see http://www.opensource.org/licenses/zlib-license.php +* or the license information file (license.htm) in the root directory +* of PeLib. +*/ + +#ifndef RELOCATIONSDIRECTORY_H +#define RELOCATIONSDIRECTORY_H + +namespace PeLib +{ + /// Class that handles the relocations directory. + /** + * This class handles the relocations directory. + **/ + class RelocationsDirectory + { + private: + std::vector m_vRelocations; ///< Used to store the relocation data. + + void read(InputBuffer& inputbuffer, unsigned int uiSize); + + public: + /// Returns the number of relocations in the relocations directory. + unsigned int calcNumberOfRelocations() const; // EXPORT + /// Returns the number of relocation data entries of a specific relocation. + unsigned int calcNumberOfRelocationData(unsigned int ulRelocation) const; // EXPORT + + /// Read a file's relocations directory. + int read(const std::string& strFilename, unsigned int uiOffset, unsigned int uiSize); // EXPORT + int read(const unsigned char* buffer, unsigned int buffersize); // EXPORT + /// Rebuilds the relocations directory. + void rebuild(std::vector& vBuffer) const; // EXPORT + /// Returns the size of the relocations directory. + unsigned int size() const; // EXPORT + /// Writes the relocations directory to a file. + int write(const std::string& strFilename, unsigned int dwOffset) const; // EXPORT + + /// Returns the VA of a relocation. + dword getVirtualAddress(unsigned int ulRelocation) const; // EXPORT + /// Returns the SizeOfBlock value of a relocation. + dword getSizeOfBlock(unsigned int ulRelocation) const; // EXPORT + /// Returns the RelocationData of a relocation. + word getRelocationData(unsigned int ulRelocation, unsigned int ulDataNumber) const; // EXPORT + + /// Changes the relocation data of a relocation. + void setRelocationData(unsigned int ulRelocation, unsigned int ulDataNumber, word wData); // EXPORT + + /// Changes the VirtualAddress of a relocation. + void setVirtualAddress(unsigned int ulRelocation, dword dwValue); // EXPORT + /// Changes the SizeOfBlock of a relocation. + void setSizeOfBlock(unsigned int ulRelocation, dword dwValue); // EXPORT + + void addRelocation(); // EXPORT + /// Adds new data to a relocation. + void addRelocationData(unsigned int ulRelocation, word wValue); // EXPORT + /// Removes data from a relocation. +// void removeRelocationData(unsigned int ulRelocation, word wValue); // EXPORT + void removeRelocation(unsigned int index); // EXPORT + void removeRelocationData(unsigned int relocindex, unsigned int dataindex); // EXPORT + }; +} + +#endif -- cgit v1.2.3