configure: minor cleanups
[mplayer.git] / unrar_exec.h
blob5754083fd7d5f9bab6415aa93075b5672584ef1e
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 along
20 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
21 * 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 */