X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fbitio.h;h=085597bc1a2b44c17279f504c32e4f72c873e45e;hp=beced62df1337aeec642df38250cdb155f2b3576;hb=ede90e3f60487332bcaede6d8f62ad0f3e0fb715;hpb=b89cdb28e751ded1c1b4b1096f602e1a8011d9a1 diff --git a/lib/bitio.h b/lib/bitio.h index beced62..085597b 100644 --- a/lib/bitio.h +++ b/lib/bitio.h @@ -4,8 +4,22 @@ Part of the swftools package. Copyright (c) 2001 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 file is distributed under the GPL, see file COPYING for details */#include + 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 */ + +#include #ifndef __rfxswf_bitio_h__ #define __rfxswf_bitio_h__ @@ -16,6 +30,7 @@ #define WRITER_TYPE_FILE 0 #define WRITER_TYPE_MEM 1 #define WRITER_TYPE_ZLIB 2 +#define WRITER_TYPE_NULL 3 struct reader_t { @@ -55,7 +70,9 @@ void reader_init_zlibinflate(struct reader_t*r, struct reader_t*input); void reader_init_memreader(struct reader_t*r, void*data, int length); void writer_init_filewriter(struct writer_t*w, int handle); +void writer_init_filewriter2(struct writer_t*w, char*filename); void writer_init_zlibdeflate(struct writer_t*w, struct writer_t*output); void writer_init_memwriter(struct writer_t*r, void*data, int length); +void writer_init_nullwriter(struct writer_t*w); #endif //__rfxswf_bitio_h__