comparison sub/unrar_exec.h @ 32459:1a605463f62b

Move vobsub.[ch] and unrar_exec.[ch] to the sub directory.
author cigaes
date Wed, 27 Oct 2010 16:58:23 +0000
parents
children
comparison
equal deleted inserted replaced
32458:ab8fb38f28b1 32459:1a605463f62b
1 /*
2 * List files and extract file from rars by using external executable unrar.
3 *
4 * Copyright (C) 2005 Jindrich Makovicka <makovick gmail com>
5 * Copyright (C) 2007 Ulion <ulion2002 gmail com>
6 *
7 * This file is part of MPlayer.
8 *
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.
13 *
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.
18 *
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.
22 */
23
24 #ifndef MPLAYER_UNRAR_EXEC_H
25 #define MPLAYER_UNRAR_EXEC_H
26
27 struct RAR_archive_entry
28 {
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;
37 };
38
39 typedef struct archivelist
40 {
41 struct RAR_archive_entry item;
42 struct archivelist *next;
43 } ArchiveList_struct;
44
45 extern char* unrar_executable;
46
47 int unrar_exec_get(unsigned char **output, unsigned long *size,
48 const char *filename, const char *rarfile);
49
50 int unrar_exec_list(const char *rarfile, ArchiveList_struct **list);
51
52 void unrar_exec_freelist(ArchiveList_struct *list);
53
54 #endif /* MPLAYER_UNRAR_EXEC_H */