Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: bzlib.h
[0] Fix | Delete
/*-------------------------------------------------------------*/
[1] Fix | Delete
/*--- Public header file for the library. ---*/
[2] Fix | Delete
/*--- bzlib.h ---*/
[3] Fix | Delete
/*-------------------------------------------------------------*/
[4] Fix | Delete
[5] Fix | Delete
/* ------------------------------------------------------------------
[6] Fix | Delete
This file is part of bzip2/libbzip2, a program and library for
[7] Fix | Delete
lossless, block-sorting data compression.
[8] Fix | Delete
[9] Fix | Delete
bzip2/libbzip2 version 1.0.6 of 6 September 2010
[10] Fix | Delete
Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
[11] Fix | Delete
[12] Fix | Delete
Please read the WARNING, DISCLAIMER and PATENTS sections in the
[13] Fix | Delete
README file.
[14] Fix | Delete
[15] Fix | Delete
This program is released under the terms of the license contained
[16] Fix | Delete
in the file LICENSE.
[17] Fix | Delete
------------------------------------------------------------------ */
[18] Fix | Delete
[19] Fix | Delete
[20] Fix | Delete
#ifndef _BZLIB_H
[21] Fix | Delete
#define _BZLIB_H
[22] Fix | Delete
[23] Fix | Delete
#ifdef __cplusplus
[24] Fix | Delete
extern "C" {
[25] Fix | Delete
#endif
[26] Fix | Delete
[27] Fix | Delete
#define BZ_RUN 0
[28] Fix | Delete
#define BZ_FLUSH 1
[29] Fix | Delete
#define BZ_FINISH 2
[30] Fix | Delete
[31] Fix | Delete
#define BZ_OK 0
[32] Fix | Delete
#define BZ_RUN_OK 1
[33] Fix | Delete
#define BZ_FLUSH_OK 2
[34] Fix | Delete
#define BZ_FINISH_OK 3
[35] Fix | Delete
#define BZ_STREAM_END 4
[36] Fix | Delete
#define BZ_SEQUENCE_ERROR (-1)
[37] Fix | Delete
#define BZ_PARAM_ERROR (-2)
[38] Fix | Delete
#define BZ_MEM_ERROR (-3)
[39] Fix | Delete
#define BZ_DATA_ERROR (-4)
[40] Fix | Delete
#define BZ_DATA_ERROR_MAGIC (-5)
[41] Fix | Delete
#define BZ_IO_ERROR (-6)
[42] Fix | Delete
#define BZ_UNEXPECTED_EOF (-7)
[43] Fix | Delete
#define BZ_OUTBUFF_FULL (-8)
[44] Fix | Delete
#define BZ_CONFIG_ERROR (-9)
[45] Fix | Delete
[46] Fix | Delete
typedef
[47] Fix | Delete
struct {
[48] Fix | Delete
char *next_in;
[49] Fix | Delete
unsigned int avail_in;
[50] Fix | Delete
unsigned int total_in_lo32;
[51] Fix | Delete
unsigned int total_in_hi32;
[52] Fix | Delete
[53] Fix | Delete
char *next_out;
[54] Fix | Delete
unsigned int avail_out;
[55] Fix | Delete
unsigned int total_out_lo32;
[56] Fix | Delete
unsigned int total_out_hi32;
[57] Fix | Delete
[58] Fix | Delete
void *state;
[59] Fix | Delete
[60] Fix | Delete
void *(*bzalloc)(void *,int,int);
[61] Fix | Delete
void (*bzfree)(void *,void *);
[62] Fix | Delete
void *opaque;
[63] Fix | Delete
}
[64] Fix | Delete
bz_stream;
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
#ifndef BZ_IMPORT
[68] Fix | Delete
#define BZ_EXPORT
[69] Fix | Delete
#endif
[70] Fix | Delete
[71] Fix | Delete
#ifndef BZ_NO_STDIO
[72] Fix | Delete
/* Need a definitition for FILE */
[73] Fix | Delete
#include <stdio.h>
[74] Fix | Delete
#endif
[75] Fix | Delete
[76] Fix | Delete
#ifdef _WIN32
[77] Fix | Delete
# include <windows.h>
[78] Fix | Delete
# ifdef small
[79] Fix | Delete
/* windows.h define small to char */
[80] Fix | Delete
# undef small
[81] Fix | Delete
# endif
[82] Fix | Delete
# ifdef BZ_EXPORT
[83] Fix | Delete
# define BZ_API(func) WINAPI func
[84] Fix | Delete
# define BZ_EXTERN extern
[85] Fix | Delete
# else
[86] Fix | Delete
/* import windows dll dynamically */
[87] Fix | Delete
# define BZ_API(func) (WINAPI * func)
[88] Fix | Delete
# define BZ_EXTERN
[89] Fix | Delete
# endif
[90] Fix | Delete
#else
[91] Fix | Delete
# define BZ_API(func) func
[92] Fix | Delete
# define BZ_EXTERN extern
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
[96] Fix | Delete
/*-- Core (low-level) library functions --*/
[97] Fix | Delete
[98] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzCompressInit) (
[99] Fix | Delete
bz_stream* strm,
[100] Fix | Delete
int blockSize100k,
[101] Fix | Delete
int verbosity,
[102] Fix | Delete
int workFactor
[103] Fix | Delete
);
[104] Fix | Delete
[105] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzCompress) (
[106] Fix | Delete
bz_stream* strm,
[107] Fix | Delete
int action
[108] Fix | Delete
);
[109] Fix | Delete
[110] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzCompressEnd) (
[111] Fix | Delete
bz_stream* strm
[112] Fix | Delete
);
[113] Fix | Delete
[114] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzDecompressInit) (
[115] Fix | Delete
bz_stream *strm,
[116] Fix | Delete
int verbosity,
[117] Fix | Delete
int small
[118] Fix | Delete
);
[119] Fix | Delete
[120] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzDecompress) (
[121] Fix | Delete
bz_stream* strm
[122] Fix | Delete
);
[123] Fix | Delete
[124] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzDecompressEnd) (
[125] Fix | Delete
bz_stream *strm
[126] Fix | Delete
);
[127] Fix | Delete
[128] Fix | Delete
[129] Fix | Delete
[130] Fix | Delete
/*-- High(er) level library functions --*/
[131] Fix | Delete
[132] Fix | Delete
#ifndef BZ_NO_STDIO
[133] Fix | Delete
#define BZ_MAX_UNUSED 5000
[134] Fix | Delete
[135] Fix | Delete
typedef void BZFILE;
[136] Fix | Delete
[137] Fix | Delete
BZ_EXTERN BZFILE* BZ_API(BZ2_bzReadOpen) (
[138] Fix | Delete
int* bzerror,
[139] Fix | Delete
FILE* f,
[140] Fix | Delete
int verbosity,
[141] Fix | Delete
int small,
[142] Fix | Delete
void* unused,
[143] Fix | Delete
int nUnused
[144] Fix | Delete
);
[145] Fix | Delete
[146] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzReadClose) (
[147] Fix | Delete
int* bzerror,
[148] Fix | Delete
BZFILE* b
[149] Fix | Delete
);
[150] Fix | Delete
[151] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzReadGetUnused) (
[152] Fix | Delete
int* bzerror,
[153] Fix | Delete
BZFILE* b,
[154] Fix | Delete
void** unused,
[155] Fix | Delete
int* nUnused
[156] Fix | Delete
);
[157] Fix | Delete
[158] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzRead) (
[159] Fix | Delete
int* bzerror,
[160] Fix | Delete
BZFILE* b,
[161] Fix | Delete
void* buf,
[162] Fix | Delete
int len
[163] Fix | Delete
);
[164] Fix | Delete
[165] Fix | Delete
BZ_EXTERN BZFILE* BZ_API(BZ2_bzWriteOpen) (
[166] Fix | Delete
int* bzerror,
[167] Fix | Delete
FILE* f,
[168] Fix | Delete
int blockSize100k,
[169] Fix | Delete
int verbosity,
[170] Fix | Delete
int workFactor
[171] Fix | Delete
);
[172] Fix | Delete
[173] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzWrite) (
[174] Fix | Delete
int* bzerror,
[175] Fix | Delete
BZFILE* b,
[176] Fix | Delete
void* buf,
[177] Fix | Delete
int len
[178] Fix | Delete
);
[179] Fix | Delete
[180] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzWriteClose) (
[181] Fix | Delete
int* bzerror,
[182] Fix | Delete
BZFILE* b,
[183] Fix | Delete
int abandon,
[184] Fix | Delete
unsigned int* nbytes_in,
[185] Fix | Delete
unsigned int* nbytes_out
[186] Fix | Delete
);
[187] Fix | Delete
[188] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzWriteClose64) (
[189] Fix | Delete
int* bzerror,
[190] Fix | Delete
BZFILE* b,
[191] Fix | Delete
int abandon,
[192] Fix | Delete
unsigned int* nbytes_in_lo32,
[193] Fix | Delete
unsigned int* nbytes_in_hi32,
[194] Fix | Delete
unsigned int* nbytes_out_lo32,
[195] Fix | Delete
unsigned int* nbytes_out_hi32
[196] Fix | Delete
);
[197] Fix | Delete
#endif
[198] Fix | Delete
[199] Fix | Delete
[200] Fix | Delete
/*-- Utility functions --*/
[201] Fix | Delete
[202] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) (
[203] Fix | Delete
char* dest,
[204] Fix | Delete
unsigned int* destLen,
[205] Fix | Delete
char* source,
[206] Fix | Delete
unsigned int sourceLen,
[207] Fix | Delete
int blockSize100k,
[208] Fix | Delete
int verbosity,
[209] Fix | Delete
int workFactor
[210] Fix | Delete
);
[211] Fix | Delete
[212] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) (
[213] Fix | Delete
char* dest,
[214] Fix | Delete
unsigned int* destLen,
[215] Fix | Delete
char* source,
[216] Fix | Delete
unsigned int sourceLen,
[217] Fix | Delete
int small,
[218] Fix | Delete
int verbosity
[219] Fix | Delete
);
[220] Fix | Delete
[221] Fix | Delete
[222] Fix | Delete
/*--
[223] Fix | Delete
Code contributed by Yoshioka Tsuneo (tsuneo@rr.iij4u.or.jp)
[224] Fix | Delete
to support better zlib compatibility.
[225] Fix | Delete
This code is not _officially_ part of libbzip2 (yet);
[226] Fix | Delete
I haven't tested it, documented it, or considered the
[227] Fix | Delete
threading-safeness of it.
[228] Fix | Delete
If this code breaks, please contact both Yoshioka and me.
[229] Fix | Delete
--*/
[230] Fix | Delete
[231] Fix | Delete
BZ_EXTERN const char * BZ_API(BZ2_bzlibVersion) (
[232] Fix | Delete
void
[233] Fix | Delete
);
[234] Fix | Delete
[235] Fix | Delete
#ifndef BZ_NO_STDIO
[236] Fix | Delete
BZ_EXTERN BZFILE * BZ_API(BZ2_bzopen) (
[237] Fix | Delete
const char *path,
[238] Fix | Delete
const char *mode
[239] Fix | Delete
);
[240] Fix | Delete
[241] Fix | Delete
BZ_EXTERN BZFILE * BZ_API(BZ2_bzdopen) (
[242] Fix | Delete
int fd,
[243] Fix | Delete
const char *mode
[244] Fix | Delete
);
[245] Fix | Delete
[246] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzread) (
[247] Fix | Delete
BZFILE* b,
[248] Fix | Delete
void* buf,
[249] Fix | Delete
int len
[250] Fix | Delete
);
[251] Fix | Delete
[252] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzwrite) (
[253] Fix | Delete
BZFILE* b,
[254] Fix | Delete
void* buf,
[255] Fix | Delete
int len
[256] Fix | Delete
);
[257] Fix | Delete
[258] Fix | Delete
BZ_EXTERN int BZ_API(BZ2_bzflush) (
[259] Fix | Delete
BZFILE* b
[260] Fix | Delete
);
[261] Fix | Delete
[262] Fix | Delete
BZ_EXTERN void BZ_API(BZ2_bzclose) (
[263] Fix | Delete
BZFILE* b
[264] Fix | Delete
);
[265] Fix | Delete
[266] Fix | Delete
BZ_EXTERN const char * BZ_API(BZ2_bzerror) (
[267] Fix | Delete
BZFILE *b,
[268] Fix | Delete
int *errnum
[269] Fix | Delete
);
[270] Fix | Delete
#endif
[271] Fix | Delete
[272] Fix | Delete
#ifdef __cplusplus
[273] Fix | Delete
}
[274] Fix | Delete
#endif
[275] Fix | Delete
[276] Fix | Delete
#endif
[277] Fix | Delete
[278] Fix | Delete
/*-------------------------------------------------------------*/
[279] Fix | Delete
/*--- end bzlib.h ---*/
[280] Fix | Delete
/*-------------------------------------------------------------*/
[281] Fix | Delete
[282] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function