1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Python Bindings for LZMA
- *
- * Copyright (c) 2004-2006 by Joachim Bauch, mail@joachim-bauch.de
- * 7-Zip Copyright (C) 1999-2005 Igor Pavlov
- * LZMA SDK Copyright (C) 1999-2005 Igor Pavlov
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * $Id: pylzma_decompressobj.h 104 2006-01-08 18:17:14Z jojo $
- *
- */
- #ifndef ___PYLZMA_DECOMPRESSOBJ__H___
- #define ___PYLZMA_DECOMPRESSOBJ__H___
- #include <Python.h>
- #include <7zip/LzmaStateDecode.h>
- typedef struct {
- PyObject_HEAD
- CLzmaDecoderState state;
- SizeT max_length;
- SizeT total_out;
- unsigned char *unconsumed_tail;
- SizeT unconsumed_length;
- int need_properties;
- } CDecompressionObject;
- extern PyTypeObject CDecompressionObject_Type;
- #define DecompressionObject_Check(v) ((v)->ob_type == &CDecompressionObject_Type)
- #endif
|