Back to index

avfs  1.0.1
uz.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     UZ (uncompress) module 
00009     using gzip
00010 */
00011 
00012 #include "filter.h"
00013 #include "version.h"
00014 
00015 int av_init_module_uz(struct vmodule *module)
00016 {
00017     struct avfs *avfs;
00018     struct ext_info uz_exts[5];
00019     const char *uz_args[3];
00020 
00021     uz_exts[0].from = ".Z",   uz_exts[0].to = NULL;
00022     uz_exts[1].from = ".tpz", uz_exts[1].to = ".tar";
00023     uz_exts[2].from = ".tz",  uz_exts[2].to = ".tar";
00024     uz_exts[3].from = ".taz", uz_exts[3].to = ".tar";
00025     uz_exts[4].from = NULL;
00026   
00027     uz_args[0] = "gzip";
00028     uz_args[1] = "-d";
00029     uz_args[2] = NULL;
00030 
00031     return av_init_filt(module, AV_VER, "uz", uz_args, NULL, uz_exts, &avfs);
00032 }