Back to index

avfs  1.0.1
ugzip.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     UGZIP module
00009 */
00010 
00011 #include "filter.h"
00012 #include "version.h"
00013 
00014 extern int av_init_module_ugzip(struct vmodule *module);
00015 
00016 int av_init_module_ugzip(struct vmodule *module)
00017 {
00018     struct avfs *avfs;
00019     const char *ugz_args[3];
00020     const char *gz_args[2];
00021 
00022     ugz_args[0] = "gzip";
00023     ugz_args[1] = "-d";
00024     ugz_args[2] = NULL;
00025 
00026     gz_args[0] = "gzip";
00027     gz_args[1] = NULL;
00028 
00029     return av_init_filt(module, AV_VER, "ugzip", ugz_args, gz_args,
00030                         NULL, &avfs);
00031 }