123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- #ifndef _ZIPAPI_H
- #define _ZIPAPI_H
- #include "zip.h"
- #ifdef WIN32
- # ifndef PATH_MAX
- # define PATH_MAX 260
- # endif
- #else
- # ifndef PATH_MAX
- # define PATH_MAX 128
- # endif
- #endif
- #if defined(WINDLL) || defined(API)
- #include <windows.h>
- #ifdef WIN32
- # define far
- # define _far
- # define __far
- # define near
- # define _near
- # define __near
- #endif
- #define ZPVER_LEN sizeof(ZpVer)
- #define D2_MAJORVER 0
- #define D2_MINORVER 0
- #define D2_PATCHLEVEL 0
- typedef struct _zip_ver {
- uch major;
- uch minor;
- uch patchlevel;
- uch not_used;
- } _zip_version_type;
- typedef struct _ZpVer {
- ulg structlen;
- ulg flag;
- char betalevel[10];
- char date[20];
- char zlib_version[10];
- BOOL fEncryption;
- _zip_version_type zip;
- _zip_version_type os2dll;
- _zip_version_type windll;
- } ZpVer;
- # ifndef EXPENTRY
- # define EXPENTRY WINAPI
- # endif
- #ifndef DEFINED_ONCE
- #define DEFINED_ONCE
- typedef int (WINAPI DLLPRNT) (LPSTR, unsigned long);
- typedef int (WINAPI DLLPASSWORD) (LPSTR, int, LPCSTR, LPCSTR);
- #endif
- #ifdef ZIP64_SUPPORT
- typedef int (WINAPI DLLSERVICE) (LPCSTR, unsigned __int64);
- typedef int (WINAPI DLLSERVICE_NO_INT64) (LPCSTR, unsigned long, unsigned long);
- #else
- typedef int (WINAPI DLLSERVICE) (LPCSTR, unsigned long);
- #endif
- typedef int (WINAPI DLLSPLIT) (LPSTR);
- typedef int (WINAPI DLLCOMMENT)(LPSTR);
- typedef struct {
- LPSTR Date;
- LPSTR szRootDir;
- LPSTR szTempDir;
- BOOL fTemp;
- BOOL fSuffix;
- BOOL fEncrypt;
- BOOL fSystem;
- BOOL fVolume;
- BOOL fExtra;
- BOOL fNoDirEntries;
- BOOL fExcludeDate;
- BOOL fIncludeDate;
- BOOL fVerbose;
- BOOL fQuiet;
- BOOL fCRLF_LF;
- BOOL fLF_CRLF;
- BOOL fJunkDir;
- BOOL fGrow;
- BOOL fForce;
- BOOL fMove;
- BOOL fDeleteEntries;
- BOOL fUpdate;
- BOOL fFreshen;
- BOOL fJunkSFX;
- BOOL fLatestTime;
- BOOL fComment;
- BOOL fOffsets;
- BOOL fPrivilege;
- BOOL fEncryption;
- LPSTR szSplitSize;
- LPSTR szIncludeList;
- long IncludeListCount;
- char **IncludeList;
- LPSTR szExcludeList;
- long ExcludeListCount;
- char **ExcludeList;
- int fRecurse;
- int fRepair;
- char fLevel;
- } ZPOPT, _far *LPZPOPT;
- typedef struct {
- int argc;
- LPSTR lpszZipFN;
- char **FNV;
- LPSTR lpszAltFNL;
- } ZCL, _far *LPZCL;
- typedef struct {
- DLLPRNT *print;
- DLLCOMMENT *comment;
- DLLPASSWORD *password;
- DLLSPLIT *split;
- #ifdef ZIP64_SUPPORT
- DLLSERVICE *ServiceApplication64;
- DLLSERVICE_NO_INT64 *ServiceApplication64_No_Int64;
- #else
- DLLSERVICE *ServiceApplication;
- #endif
- } ZIPUSERFUNCTIONS, far * LPZIPUSERFUNCTIONS;
- extern LPZIPUSERFUNCTIONS lpZipUserFunctions;
- void EXPENTRY ZpVersion(ZpVer far *);
- int EXPENTRY ZpInit(LPZIPUSERFUNCTIONS lpZipUserFunc);
- int EXPENTRY ZpArchive(ZCL C, LPZPOPT Opts);
- #if defined(ZIPLIB) || defined(COM_OBJECT)
- # define ydays zp_ydays
- #endif
- #if 0
- int EXPENTRY ZpMain (int argc, char **argv);
- int EXPENTRY ZpAltMain (int argc, char **argv, ZpInit *init);
- #endif
- #endif
- #endif
|