blob: bc013913bd07f45ba06dcf866e8f0c1bf9aa223c [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
Jonathan Ernst360a3f92006-05-18 14:49:52 +020017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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
Patrik Stridvall14da7b11999-06-12 10:53:06 +000023#ifdef __cplusplus
24extern "C" {
25#endif /* defined(__cplusplus) */
26
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000027#define LZERROR_BADINHANDLE -1 /* -1 */
28#define LZERROR_BADOUTHANDLE -2 /* -2 */
29#define LZERROR_READ -3 /* -3 */
30#define LZERROR_WRITE -4 /* -4 */
31#define LZERROR_GLOBALLOC -5 /* -5 */
32#define LZERROR_GLOBLOCK -6 /* -6 */
33#define LZERROR_BADVALUE -7 /* -7 */
34#define LZERROR_UNKNOWNALG -8 /* -8 */
Alexandre Julliardc6c09441997-01-12 18:32:19 +000035
Michael Veksler17822f41999-02-09 15:46:25 +000036VOID WINAPI LZDone(void);
Alexandre Julliarda3960291999-02-26 11:11:13 +000037LONG WINAPI CopyLZFile(HFILE,HFILE);
Steven Edwardse426e9a2003-04-30 17:15:06 +000038HFILE WINAPI LZOpenFileA(LPSTR,LPOFSTRUCT,WORD);
39HFILE WINAPI LZOpenFileW(LPWSTR,LPOFSTRUCT,WORD);
Michael Veksler17822f41999-02-09 15:46:25 +000040#define LZOpenFile WINELIB_NAME_AW(LZOpenFile)
Steven Edwardse426e9a2003-04-30 17:15:06 +000041INT WINAPI LZRead(INT,LPSTR,INT);
Alexandre Julliard83f52d12000-09-26 22:20:14 +000042INT WINAPI LZStart(void);
Alexandre Julliarda3960291999-02-26 11:11:13 +000043void WINAPI LZClose(HFILE);
Alexandre Julliarda3960291999-02-26 11:11:13 +000044LONG WINAPI LZCopy(HFILE,HFILE);
Alexandre Julliard83f52d12000-09-26 22:20:14 +000045HFILE WINAPI LZInit(HFILE);
Alexandre Julliarda3960291999-02-26 11:11:13 +000046LONG WINAPI LZSeek(HFILE,LONG,INT);
Steven Edwardse426e9a2003-04-30 17:15:06 +000047INT WINAPI GetExpandedNameA(LPSTR,LPSTR);
48INT WINAPI GetExpandedNameW(LPWSTR,LPWSTR);
Michael Veksler17822f41999-02-09 15:46:25 +000049#define GetExpandedName WINELIB_NAME_AW(GetExpandedName)
50
Patrik Stridvall14da7b11999-06-12 10:53:06 +000051#ifdef __cplusplus
52} /* extern "C" */
53#endif /* defined(__cplusplus) */
54
Alexandre Julliardc6c09441997-01-12 18:32:19 +000055#endif /* __WINE_LZEXPAND_H */