pylzma_decompressobj.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Python Bindings for LZMA
  3. *
  4. * Copyright (c) 2004-2006 by Joachim Bauch, mail@joachim-bauch.de
  5. * 7-Zip Copyright (C) 1999-2005 Igor Pavlov
  6. * LZMA SDK Copyright (C) 1999-2005 Igor Pavlov
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. * $Id: pylzma_decompressobj.h 104 2006-01-08 18:17:14Z jojo $
  23. *
  24. */
  25. #ifndef ___PYLZMA_DECOMPRESSOBJ__H___
  26. #define ___PYLZMA_DECOMPRESSOBJ__H___
  27. #include <Python.h>
  28. #include <7zip/LzmaStateDecode.h>
  29. typedef struct {
  30. PyObject_HEAD
  31. CLzmaDecoderState state;
  32. SizeT max_length;
  33. SizeT total_out;
  34. unsigned char *unconsumed_tail;
  35. SizeT unconsumed_length;
  36. int need_properties;
  37. } CDecompressionObject;
  38. extern PyTypeObject CDecompressionObject_Type;
  39. #define DecompressionObject_Check(v) ((v)->ob_type == &CDecompressionObject_Type)
  40. #endif