xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

filter.c File Reference
#include "libisofs.h"
#include "filter.h"
#include "node.h"
Include dependency graph for filter.c:

Go to the source code of this file.


void iso_filter_ref (FilterContext *filter)
void iso_filter_unref (FilterContext *filter)
int iso_file_add_filter (IsoFile *file, FilterContext *filter, int flag)
int iso_file_remove_filter (IsoFile *file, int flag)

Function Documentation

◆ iso_file_add_filter()

int iso_file_add_filter ( IsoFile file,
FilterContext filter,
int  flag 
flagReserved for future usage, pass always 0 for now. TODO in a future a different value can mean filter caching, where the filter is applied once and the filtered file is stored in a temp dir. This prevent filter to be applied several times.

Definition at line 33 of file filter.c.

References filter_context::get_filter, ISO_NULL_POINTER, iso_stream_is_repeatable(), iso_stream_unref(), ISO_SUCCESS, ISO_WRONG_ARG_VALUE, and Iso_File::stream.

Referenced by gzip_add_filter(), iso_file_add_external_filter(), and ziso_add_filter().

◆ iso_file_remove_filter()

int iso_file_remove_filter ( IsoFile file,
int  flag 

Delete the top filter stream from a data file. This is the most recent one which was added by iso_file_add_*_filter(). Caution: One should not do this while the IsoStream of the file is opened. For now there is no general way to determine this state. Filter stream implementations are urged to eventually call .close() inside method .free() . This will close the input stream too.

fileThe data file node which shall get rid of one layer of content filtering.
flagBitfield for control purposes, unused yet, submit 0.
1 on success, 0 if no filter was present <0 on error

Definition at line 58 of file filter.c.

References iso_stream_get_input_stream(), iso_stream_ref(), iso_stream_unref(), and Iso_File::stream.

Referenced by gzip_add_filter(), iso_file_add_external_filter(), Xorriso_set_filter(), and ziso_add_filter().

◆ iso_filter_ref()

void iso_filter_ref ( FilterContext filter)

Definition at line 20 of file filter.c.

References filter_context::refcount.

◆ iso_filter_unref()

void iso_filter_unref ( FilterContext filter)

Definition at line 25 of file filter.c.

References filter_context::free, and filter_context::refcount.