Back to index

avfs  1.0.1
uxze.c
Go to the documentation of this file.
00001 /*  
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 2010 Ralf Hoffmann <ralf@boomerangsworld.de>
00004 
00005     This program can be distributed under the terms of the GNU GPL.
00006     See the file COPYING.
00007     
00008     UXZE module
00009 */
00010 
00011 #include "filter.h"
00012 #include "version.h"
00013 
00014 extern int av_init_module_uxze(struct vmodule *module);
00015 
00016 int av_init_module_uxze(struct vmodule *module)
00017 {
00018     struct avfs *avfs;
00019     const char *uxze_args[3];
00020     const char *xze_args[2];
00021     struct ext_info uxze_exts[5];
00022 
00023     uxze_args[0] = "xz";
00024     uxze_args[1] = "-d";
00025     uxze_args[2] = NULL;
00026 
00027     xze_args[0] = "xz";
00028     xze_args[1] = NULL;
00029 
00030     uxze_exts[0].from = ".tar.xz",   uxze_exts[0].to = ".tar";
00031     uxze_exts[1].from = ".txz",  uxze_exts[1].to = ".tar";
00032     uxze_exts[2].from = ".xz",   uxze_exts[2].to = NULL;
00033     uxze_exts[3].from = ".lzma",   uxze_exts[3].to = NULL;
00034     uxze_exts[4].from = NULL;
00035 
00036     return av_init_filt(module, AV_VER, "uxze", uxze_args, xze_args,
00037                         uxze_exts, &avfs);
00038 }