zlibpas.hpp 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 2002 by Borland Software Corporation
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'zlibpas.pas' rev: 6.00
  5. #ifndef zlibpasHPP
  6. #define zlibpasHPP
  7. #pragma delphiheader begin
  8. #pragma option push -w-
  9. #pragma option push -Vx
  10. #include <SysInit.hpp> // Pascal unit
  11. #include <System.hpp> // Pascal unit
  12. //-- user supplied -----------------------------------------------------------
  13. namespace Zlibpas
  14. {
  15. //-- type declarations -------------------------------------------------------
  16. typedef void * __fastcall (*TAlloc)(void * AppData, int Items, int Size);
  17. typedef void __fastcall (*TFree)(void * AppData, void * Block);
  18. #pragma pack(push, 1)
  19. struct TZStreamRec
  20. {
  21. char *next_in;
  22. int avail_in;
  23. int total_in;
  24. char *next_out;
  25. int avail_out;
  26. int total_out;
  27. char *msg;
  28. void *internal;
  29. TAlloc zalloc;
  30. TFree zfree;
  31. void *AppData;
  32. int data_type;
  33. int adler;
  34. int reserved;
  35. } ;
  36. #pragma pack(pop)
  37. //-- var, const, procedure ---------------------------------------------------
  38. #define zlib_version "1.2.3"
  39. static const Shortint Z_NO_FLUSH = 0x0;
  40. static const Shortint Z_PARTIAL_FLUSH = 0x1;
  41. static const Shortint Z_SYNC_FLUSH = 0x2;
  42. static const Shortint Z_FULL_FLUSH = 0x3;
  43. static const Shortint Z_FINISH = 0x4;
  44. static const Shortint Z_OK = 0x0;
  45. static const Shortint Z_STREAM_END = 0x1;
  46. static const Shortint Z_NEED_DICT = 0x2;
  47. static const Shortint Z_ERRNO = 0xffffffff;
  48. static const Shortint Z_STREAM_ERROR = 0xfffffffe;
  49. static const Shortint Z_DATA_ERROR = 0xfffffffd;
  50. static const Shortint Z_MEM_ERROR = 0xfffffffc;
  51. static const Shortint Z_BUF_ERROR = 0xfffffffb;
  52. static const Shortint Z_VERSION_ERROR = 0xfffffffa;
  53. static const Shortint Z_NO_COMPRESSION = 0x0;
  54. static const Shortint Z_BEST_SPEED = 0x1;
  55. static const Shortint Z_BEST_COMPRESSION = 0x9;
  56. static const Shortint Z_DEFAULT_COMPRESSION = 0xffffffff;
  57. static const Shortint Z_FILTERED = 0x1;
  58. static const Shortint Z_HUFFMAN_ONLY = 0x2;
  59. static const Shortint Z_DEFAULT_STRATEGY = 0x0;
  60. static const Shortint Z_BINARY = 0x0;
  61. static const Shortint Z_ASCII = 0x1;
  62. static const Shortint Z_UNKNOWN = 0x2;
  63. static const Shortint Z_DEFLATED = 0x8;
  64. extern PACKAGE char *_z_errmsg[10];
  65. extern PACKAGE int __fastcall deflateInit_(TZStreamRec &strm, int level, char * version, int recsize);
  66. extern PACKAGE int __fastcall deflate(TZStreamRec &strm, int flush);
  67. extern PACKAGE int __fastcall deflateEnd(TZStreamRec &strm);
  68. extern PACKAGE int __fastcall inflateInit_(TZStreamRec &strm, char * version, int recsize);
  69. extern PACKAGE int __fastcall inflate(TZStreamRec &strm, int flush);
  70. extern PACKAGE int __fastcall inflateEnd(TZStreamRec &strm);
  71. } /* namespace Zlibpas */
  72. using namespace Zlibpas;
  73. #pragma option pop // -w-
  74. #pragma option pop // -Vx
  75. #pragma delphiheader end.
  76. //-- end unit ----------------------------------------------------------------
  77. #endif // zlibpas