blob: 450f92db4374a80c90a8049828a6638c53a18146 [file] [log] [blame]
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00001/* Includefile for the decompression library, lzexpand
2 *
3 * Copyright 1996 Marcus Meissner
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00004 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000018 */
19
Alexandre Julliardc6c09441997-01-12 18:32:19 +000020#ifndef __WINE_LZEXPAND_H
21#define __WINE_LZEXPAND_H
22
Jim Aston2e1cafa1999-03-14 16:35:05 +000023#include "windef.h"
Michael Veksler17822f41999-02-09 15:46:25 +000024
Patrik Stridvall14da7b11999-06-12 10:53:06 +000025#ifdef __cplusplus
26extern "C" {
27#endif /* defined(__cplusplus) */
28
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000029#define LZERROR_BADINHANDLE -1 /* -1 */
30#define LZERROR_BADOUTHANDLE -2 /* -2 */
31#define LZERROR_READ -3 /* -3 */
32#define LZERROR_WRITE -4 /* -4 */
33#define LZERROR_GLOBALLOC -5 /* -5 */
34#define LZERROR_GLOBLOCK -6 /* -6 */
35#define LZERROR_BADVALUE -7 /* -7 */
36#define LZERROR_UNKNOWNALG -8 /* -8 */
Alexandre Julliardc6c09441997-01-12 18:32:19 +000037
Michael Veksler17822f41999-02-09 15:46:25 +000038VOID WINAPI LZDone(void);
Alexandre Julliarda3960291999-02-26 11:11:13 +000039LONG WINAPI CopyLZFile(HFILE,HFILE);
Steven Edwardse426e9a2003-04-30 17:15:06 +000040HFILE WINAPI LZOpenFileA(LPSTR,LPOFSTRUCT,WORD);
41HFILE WINAPI LZOpenFileW(LPWSTR,LPOFSTRUCT,WORD);
Michael Veksler17822f41999-02-09 15:46:25 +000042#define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
Steven Edwardse426e9a2003-04-30 17:15:06 +000043INT WINAPI LZRead(INT,LPSTR,INT);
Alexandre Julliard83f52d12000-09-26 22:20:14 +000044INT WINAPI LZStart(void);
Alexandre Julliarda3960291999-02-26 11:11:13 +000045void WINAPI LZClose(HFILE);
Alexandre Julliarda3960291999-02-26 11:11:13 +000046LONG WINAPI LZCopy(HFILE,HFILE);
Alexandre Julliard83f52d12000-09-26 22:20:14 +000047HFILE WINAPI LZInit(HFILE);
Alexandre Julliarda3960291999-02-26 11:11:13 +000048LONG WINAPI LZSeek(HFILE,LONG,INT);
Steven Edwardse426e9a2003-04-30 17:15:06 +000049INT WINAPI GetExpandedNameA(LPSTR,LPSTR);
50INT WINAPI GetExpandedNameW(LPWSTR,LPWSTR);
Michael Veksler17822f41999-02-09 15:46:25 +000051#define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
52
Patrik Stridvall14da7b11999-06-12 10:53:06 +000053#ifdef __cplusplus
54} /* extern "C" */
55#endif /* defined(__cplusplus) */
56
Alexandre Julliardc6c09441997-01-12 18:32:19 +000057#endif /* __WINE_LZEXPAND_H */