X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2Fdepack.h;h=9182fb414ae8dca6d1f05d5a14339ebcb685cb73;hb=2ebc1bc94db29cb0a1032467d0032a213eee9502;hp=028ab0ccb2402385b1615436f2491a33f2372cd7;hpb=da97caafcee0c98ab921da77fbec70aa26727d98;p=swftools.git diff --git a/installer/depack.h b/installer/depack.h index 028ab0c..9182fb4 100644 --- a/installer/depack.h +++ b/installer/depack.h @@ -1,41 +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 +/* 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