comparison unrar_exec.h @ 25361:f95cd1391ea0

Support using unrar executable to access rar-compressed vobsub files.
author ulion
date Fri, 14 Dec 2007 08:16:39 +0000
parents
children ae7399c268fe
comparison
equal deleted inserted replaced
25360:574ff7687644 25361:f95cd1391ea0
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
20 * along with MPlayer; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #ifndef UNRAR_EXEC_H
25 #define UNRAR_EXEC_H
26
27 #include "unrarlib.h"
28
29 extern char* unrar_executable;
30
31 int unrar_exec_get(unsigned char **output, unsigned long *size,
32 const char *filename, const char *rarfile);
33
34 int unrar_exec_list(const char *rarfile, ArchiveList_struct **list);
35
36 void unrar_exec_freelist(ArchiveList_struct *list);
37
38 #endif /* UNRAR_EXEC_H */