X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/a9b51e6d85e077f8e18c35ac3606d80b343927e0..a6f1f69cc4874e2f2f878289bfc0f677220dfda9:/src/pack.h diff --git a/src/pack.h b/src/pack.h index 283f28c..8b4874d 100644 --- a/src/pack.h +++ b/src/pack.h @@ -1,3 +1,22 @@ +/* + * upkg: tool for manipulating Unreal Tournament packages. + * Copyright (C) 2009 Nick Bowler + * + * 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 + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * 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 + */ + #ifndef PACK_H_ #define PACK_H_ @@ -27,4 +46,16 @@ unsigned long unpack_32_le(unsigned char *); unsigned long long unpack_64_le(unsigned char *); #endif +short unpack_s16_be(unsigned char *); +long unpack_s32_be(unsigned char *); +#ifdef LLONG_MAX +long long unpack_s64_be(unsigned char *); +#endif + +short unpack_s16_le(unsigned char *); +long unpack_s32_le(unsigned char *); +#ifdef LLONG_MAX +long long unpack_s64_le(unsigned char *); +#endif + #endif