]> git.draconx.ca Git - upkg.git/blobdiff - src/pack.h
license: Add permissive license to build related source files.
[upkg.git] / src / pack.h
index 8b4874d9114e3a0a9dd3197b94aa76a899f356f2..84d1030c387c696bf79fd29fd9ba3658b58ab74d 100644 (file)
@@ -2,9 +2,9 @@
  *  upkg: tool for manipulating Unreal Tournament packages.
  *  Copyright (C) 2009 Nick Bowler
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+
 #ifndef PACK_H_
 #define PACK_H_
 
@@ -34,28 +34,28 @@ void pack_32_le(unsigned char *, unsigned long);
 void pack_64_le(unsigned char *, unsigned long long);
 #endif
 
-unsigned short unpack_16_be(unsigned char *);
-unsigned long  unpack_32_be(unsigned char *);
+unsigned short unpack_16_be(const unsigned char *);
+unsigned long  unpack_32_be(const unsigned char *);
 #ifdef ULLONG_MAX
-unsigned long long unpack_64_be(unsigned char *);
+unsigned long long unpack_64_be(const unsigned char *);
 #endif
 
-unsigned short unpack_16_le(unsigned char *);
-unsigned long  unpack_32_le(unsigned char *);
+unsigned short unpack_16_le(const unsigned char *);
+unsigned long  unpack_32_le(const unsigned char *);
 #ifdef ULLONG_MAX
-unsigned long long unpack_64_le(unsigned char *);
+unsigned long long unpack_64_le(const unsigned char *);
 #endif
 
-short unpack_s16_be(unsigned char *);
-long  unpack_s32_be(unsigned char *);
+short unpack_s16_be(const unsigned char *);
+long  unpack_s32_be(const unsigned char *);
 #ifdef LLONG_MAX
-long long unpack_s64_be(unsigned char *);
+long long unpack_s64_be(const unsigned char *);
 #endif
 
-short unpack_s16_le(unsigned char *);
-long  unpack_s32_le(unsigned char *);
+short unpack_s16_le(const unsigned char *);
+long  unpack_s32_le(const unsigned char *);
 #ifdef LLONG_MAX
-long long unpack_s64_le(unsigned char *);
+long long unpack_s64_le(const unsigned char *);
 #endif
 
 #endif