File: ubzip2.c

package info (click to toggle)
avfs 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,916 kB
  • sloc: ansic: 31,364; sh: 6,482; perl: 1,916; makefile: 351
file content (31 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*  
    AVFS: A Virtual File System Library
    Copyright (C) 1998  Miklos Szeredi <miklos@szeredi.hu>

    This program can be distributed under the terms of the GNU GPL.
    See the file COPYING.

    UBZIP2 module
*/

#include "filter.h"
#include "version.h"

extern int av_init_module_ubzip2(struct vmodule *module);

int av_init_module_ubzip2(struct vmodule *module)
{
    struct avfs *avfs;
    const char *ubz2_args[3];
    const char *bz2_args[2];
  
    ubz2_args[0] = "bzip2";
    ubz2_args[1] = "-d";
    ubz2_args[2] = NULL;

    bz2_args[0] = "bzip2";
    bz2_args[1] = NULL;

    return av_init_filt(module, AV_VER, "ubzip2", ubz2_args, bz2_args,
                        NULL, &avfs);
}