LMMS
Loading...
Searching...
No Matches
unzip.h File Reference

Go to the source code of this file.

Classes

struct  _UzpBuffer
struct  _UzpInit
struct  _UzpCB
struct  _UzpOpts
struct  _ver
struct  _UzpVer
struct  _UzpVer2
struct  _Uzp_Siz64
struct  _Uzp_cdir_Rec

Macros

#define OF(a)
#define ZCONST
#define UZ_EXP
#define void   int
#define _IZ_TYPES_DEFINED
#define UZPINIT_LEN   sizeof(UzpInit)
#define UZPVER_LEN   sizeof(UzpVer)
#define cbList(func)
#define PK_OK   0 /* no error */
#define PK_COOL   0 /* no error */
#define PK_WARN   1 /* warning error */
#define PK_ERR   2 /* error in zipfile */
#define PK_BADERR   3 /* severe error in zipfile */
#define PK_MEM   4 /* insufficient memory (during initialization) */
#define PK_MEM2   5 /* insufficient memory (password failure) */
#define PK_MEM3   6 /* insufficient memory (file decompression) */
#define PK_MEM4   7 /* insufficient memory (memory decompression) */
#define PK_MEM5   8 /* insufficient memory (not yet used) */
#define PK_NOZIP   9 /* zipfile not found */
#define PK_PARAM   10 /* bad or illegal parameters specified */
#define PK_FIND   11 /* no files found */
#define PK_DISK   50 /* disk full */
#define PK_EOF   51 /* unexpected EOF */
#define IZ_CTRLC   80 /* user hit ^C to terminate */
#define IZ_UNSUP   81 /* no files found: all unsup. compr/encrypt. */
#define IZ_BADPWD   82 /* no files found: all had bad password */
#define IZ_ERRBF   83 /* big-file archive, small-file program */
#define IZ_PW_ENTERED   0 /* got some password string; use/try it */
#define IZ_PW_CANCEL   -1 /* no password available (for this entry) */
#define IZ_PW_CANCELALL   -2 /* no password, skip any further pwd. request */
#define IZ_PW_ERROR   5 /* = PK_MEM2 : failure (no mem, no tty, ...) */
#define UZ_ST_START_EXTRACT   1 /* no details */
#define UZ_ST_IN_PROGRESS   2 /* no details */
#define UZ_ST_FINISH_MEMBER   3 /* 'details': extracted size */
#define UZ_ST_CONTINUE   0
#define UZ_ST_BREAK   1
#define UzpMatch   match

Typedefs

typedef char zvoid
typedef unsigned char uch
typedef unsigned short ush
typedef unsigned long ulg
typedef struct _UzpBuffer UzpBuffer
typedef struct _UzpInit UzpInit
typedef struct _UzpCB UzpCB
typedef struct _UzpOpts UzpOpts
typedef struct _ver _version_type
typedef struct _UzpVer UzpVer
typedef struct _UzpVer2 UzpVer2
typedef struct _Uzp_Siz64 Uzp_Siz64
typedef struct _Uzp_cdir_Rec Uzp_cdir_Rec

Functions

typedef int (UZ_EXP MsgFn)()
typedef void (UZ_EXP PauseFn)()
int UZ_EXP UzpMain OF ((int argc, char **argv))
int UZ_EXP UzpAltMain OF ((int argc, char **argv, UzpInit *init))
ZCONST UzpVer *UZ_EXP UzpVersion OF ((void))
void UZ_EXP UzpFreeMemBuffer OF ((UzpBuffer *retstr))
int UZ_EXP UzpUnzipToMemory OF ((char *zip, char *file, UzpOpts *optflgs, UzpCB *UsrFunc, UzpBuffer *retstr))
int UZ_EXP UzpGrep OF ((char *archive, char *file, char *pattern, int cmd, int SkipBin, UzpCB *UsrFunc))
unsigned UZ_EXP UzpVersion2 OF ((UzpVer2 *version))
int UZ_EXP UzpValidate OF ((char *archive, int AllCodes))
int UZ_EXP UzpMessagePrnt OF ((zvoid *pG, uch *buf, ulg size, int flag))
int UZ_EXP UzpInput OF ((zvoid *pG, uch *buf, int *size, int flag))
void UZ_EXP UzpMorePause OF ((zvoid *pG, ZCONST char *prompt, int flag))
int UZ_EXP UzpPassword OF ((zvoid *pG, int *rcnt, char *pwbuf, int size, ZCONST char *zfn, ZCONST char *efn))

Macro Definition Documentation

◆ _IZ_TYPES_DEFINED

#define _IZ_TYPES_DEFINED

◆ cbList

#define cbList ( func)
Value:
int (* UZ_EXP func)(char *filename, Uzp_cdir_Rec *crec)
static char filename[]
Definition features.c:5
typedef int(UZ_EXP MsgFn)()
struct _Uzp_cdir_Rec Uzp_cdir_Rec
#define UZ_EXP
Definition unzip.h:379

◆ IZ_BADPWD

#define IZ_BADPWD   82 /* no files found: all had bad password */

◆ IZ_CTRLC

#define IZ_CTRLC   80 /* user hit ^C to terminate */

◆ IZ_ERRBF

#define IZ_ERRBF   83 /* big-file archive, small-file program */

◆ IZ_PW_CANCEL

#define IZ_PW_CANCEL   -1 /* no password available (for this entry) */

◆ IZ_PW_CANCELALL

#define IZ_PW_CANCELALL   -2 /* no password, skip any further pwd. request */

◆ IZ_PW_ENTERED

#define IZ_PW_ENTERED   0 /* got some password string; use/try it */

◆ IZ_PW_ERROR

#define IZ_PW_ERROR   5 /* = PK_MEM2 : failure (no mem, no tty, ...) */

◆ IZ_UNSUP

#define IZ_UNSUP   81 /* no files found: all unsup. compr/encrypt. */

◆ OF

#define OF ( a)
Value:
()

◆ PK_BADERR

#define PK_BADERR   3 /* severe error in zipfile */

◆ PK_COOL

return PK_COOL   0 /* no error */

◆ PK_DISK

#define PK_DISK   50 /* disk full */

◆ PK_EOF

#define PK_EOF   51 /* unexpected EOF */

◆ PK_ERR

#define PK_ERR   2 /* error in zipfile */

◆ PK_FIND

#define PK_FIND   11 /* no files found */

◆ PK_MEM

#define PK_MEM   4 /* insufficient memory (during initialization) */

◆ PK_MEM2

#define PK_MEM2   5 /* insufficient memory (password failure) */

◆ PK_MEM3

#define PK_MEM3   6 /* insufficient memory (file decompression) */

◆ PK_MEM4

#define PK_MEM4   7 /* insufficient memory (memory decompression) */

◆ PK_MEM5

#define PK_MEM5   8 /* insufficient memory (not yet used) */

◆ PK_NOZIP

#define PK_NOZIP   9 /* zipfile not found */

◆ PK_OK

#define PK_OK   0 /* no error */

◆ PK_PARAM

#define PK_PARAM   10 /* bad or illegal parameters specified */

◆ PK_WARN

#define PK_WARN   1 /* warning error */

◆ UZ_EXP

#define UZ_EXP

◆ UZ_ST_BREAK

#define UZ_ST_BREAK   1

◆ UZ_ST_CONTINUE

#define UZ_ST_CONTINUE   0

◆ UZ_ST_FINISH_MEMBER

#define UZ_ST_FINISH_MEMBER   3 /* 'details': extracted size */

◆ UZ_ST_IN_PROGRESS

#define UZ_ST_IN_PROGRESS   2 /* no details */

◆ UZ_ST_START_EXTRACT

#define UZ_ST_START_EXTRACT   1 /* no details */

◆ UZPINIT_LEN

#define UZPINIT_LEN   sizeof(UzpInit)

◆ UzpMatch

#define UzpMatch   match

◆ UZPVER_LEN

#define UZPVER_LEN   sizeof(UzpVer)

◆ void

◆ ZCONST

#define ZCONST

Typedef Documentation

◆ _version_type

typedef struct _ver _version_type

◆ uch

typedef unsigned char uch

◆ ulg

typedef unsigned long ulg

◆ ush

typedef unsigned short ush

◆ Uzp_cdir_Rec

typedef struct _Uzp_cdir_Rec Uzp_cdir_Rec

◆ Uzp_Siz64

typedef struct _Uzp_Siz64 Uzp_Siz64

◆ UzpBuffer

typedef struct _UzpBuffer UzpBuffer

◆ UzpCB

typedef struct _UzpCB UzpCB

◆ UzpInit

typedef struct _UzpInit UzpInit

◆ UzpOpts

typedef struct _UzpOpts UzpOpts

◆ UzpVer

typedef struct _UzpVer UzpVer

◆ UzpVer2

typedef struct _UzpVer2 UzpVer2

◆ zvoid

typedef char zvoid

Function Documentation

◆ int()

typedef int ( UZ_EXP MsgFn)

◆ OF() [1/12]

int UZ_EXP UzpGrep OF ( (char *archive, char *file, char *pattern, int cmd, int SkipBin, UzpCB *UsrFunc) )

◆ OF() [2/12]

int UZ_EXP UzpValidate OF ( (char *archive, int AllCodes) )

◆ OF() [3/12]

int UZ_EXP UzpUnzipToMemory OF ( (char *zip, char *file, UzpOpts *optflgs, UzpCB *UsrFunc, UzpBuffer *retstr) )

◆ OF() [4/12]

int UZ_EXP UzpMain OF ( (int argc, char **argv) )

◆ OF() [5/12]

int UZ_EXP UzpAltMain OF ( (int argc, char **argv, UzpInit *init) )

◆ OF() [6/12]

void UZ_EXP UzpFreeMemBuffer OF ( (UzpBuffer *retstr) )

◆ OF() [7/12]

unsigned UZ_EXP UzpVersion2 OF ( (UzpVer2 *version) )

◆ OF() [8/12]

ZCONST UzpVer *UZ_EXP UzpVersion OF ( (void) )

◆ OF() [9/12]

int UZ_EXP UzpPassword OF ( (zvoid *pG, int *rcnt, char *pwbuf, int size, ZCONST char *zfn, ZCONST char *efn) )

◆ OF() [10/12]

int UZ_EXP UzpInput OF ( (zvoid *pG, uch *buf, int *size, int flag) )

◆ OF() [11/12]

int UZ_EXP UzpMessagePrnt OF ( (zvoid *pG, uch *buf, ulg size, int flag) )

◆ OF() [12/12]

void UZ_EXP UzpMorePause OF ( (zvoid *pG, ZCONST char *prompt, int flag) )

◆ void()

typedef void ( UZ_EXP PauseFn)