X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2Fdepack.h;h=9182fb414ae8dca6d1f05d5a14339ebcb685cb73;hb=2ebc1bc94db29cb0a1032467d0032a213eee9502;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=fe1bb135fc2ad5be9269d6676d48d00bd6282f70;p=swftools.git diff --git a/installer/depack.h b/installer/depack.h index e69de29..9182fb4 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 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 +