Back to index

avfs  1.0.1
bz2.c
Go to the documentation of this file.
00001 /*  
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 1998  Miklos Szeredi <miklos@szeredi.hu>
00004 
00005     This program can be distributed under the terms of the GNU GPL.
00006     See the file COPYING.
00007 
00008     BZ2 module
00009 */
00010 
00011 #include "filter.h"
00012 #include "version.h"
00013 
00014 extern int av_init_module_bz2(struct vmodule *module);
00015 
00016 int av_init_module_bz2(struct vmodule *module)
00017 {
00018     struct avfs *avfs;
00019     const char *ubz2_args[3];
00020     const char *bz2_args[2];
00021   
00022     ubz2_args[0] = "bzip2";
00023     ubz2_args[1] = "-d";
00024     ubz2_args[2] = NULL;
00025 
00026     bz2_args[0] = "bzip2";
00027     bz2_args[1] = NULL;
00028 
00029     /* FIXME: compression level argument */
00030     return av_init_filt(module, AV_VER, "bz2", bz2_args, ubz2_args,
00031                         NULL, &avfs);
00032 }