X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2Fdepack.h;h=028ab0ccb2402385b1615436f2491a33f2372cd7;hb=da97caafcee0c98ab921da77fbec70aa26727d98;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=75e8a98f513e75e2a09dc3e96edc5111af9c1abf;p=swftools.git diff --git a/installer/depack.h b/installer/depack.h index e69de29..028ab0c 100644 --- a/installer/depack.h +++ b/installer/depack.h @@ -0,0 +1,41 @@ +/* depack.h + + Part of the swftools installer. + + Copyright (c) 2004 Matthias Kramm + + 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 Depack_h +#define Depack_h + +typedef unsigned long int U32; +typedef unsigned char U8; + +typedef struct { + void*internal; + int pos; + int size; +} depack_t; + +typedef void (*writefunc_t)(void*writer, void*mem, int len); +typedef void (*readfunc_t)(void*reader, void*mem, int len); + +void depack_init(depack_t*d, void*reader, readfunc_t); +void depack_process(depack_t*d, void*writer, writefunc_t); +void depack_destroy(depack_t*d); + +#endif //Depack_h +