Fix a typo that causes an assertion to always fail.
[mplayer.git] / unrar_exec.h
blobdfe9e56191d73721c6e9cfceb85ea577536d3db2
1 /*
2 * List files and extract file from rars by using external executable unrar.
4 * Copyright (C) 2005 Jindrich Makovicka <makovick gmail com>
5 * Copyright (C) 2007 Ulion <ulion2002 gmail com>
7 * This file is part of MPlayer.
9 * MPlayer is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * MPlayer is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with MPlayer; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef MPLAYER_UNRAR_EXEC_H
25 #define MPLAYER_UNRAR_EXEC_H
27 struct RAR_archive_entry
29 char *Name;
30 unsigned long PackSize;
31 unsigned long UnpSize;
32 unsigned long FileCRC;
33 unsigned long FileTime;
34 unsigned char UnpVer;
35 unsigned char Method;
36 unsigned long FileAttr;
39 typedef struct archivelist
41 struct RAR_archive_entry item;
42 struct archivelist *next;
43 } ArchiveList_struct;
45 extern char* unrar_executable;
47 int unrar_exec_get(unsigned char **output, unsigned long *size,
48 const char *filename, const char *rarfile);
50 int unrar_exec_list(const char *rarfile, ArchiveList_struct **list);
52 void unrar_exec_freelist(ArchiveList_struct *list);
54 #endif /* MPLAYER_UNRAR_EXEC_H */