Back to index

avfs  1.0.1
filter.h File Reference
#include "avfs.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int av_init_filt (struct vmodule *module, int version, const char *name, const char *prog[], const char *revprog[], struct ext_info *exts, struct avfs **resp)

Function Documentation

int av_init_filt ( struct vmodule module,
int  version,
const char *  name,
const char *  prog[],
const char *  revprog[],
struct ext_info exts,
struct avfs **  resp 

Definition at line 523 of file filter.c.

    int res;
    struct avfs *avfs;
    struct filtdata *filtdat;
    res = av_new_avfs(name, exts, version, AVF_NOLOCK, module, &avfs);
    if(res < 0)
        return res;

    filtdat->prog = filt_copy_prog(prog);
    filtdat->revprog = filt_copy_prog(revprog);

    avfs->data = filtdat;

    avfs->destroy  = filt_destroy;
    avfs->lookup   = filt_lookup;
    avfs->access   = filt_access;
    avfs->unlink   = filt_unlink;
    avfs->rename   = filt_rename;  
    avfs->open     = filt_open;
    avfs->close    = filt_close; 
    avfs->read     = filt_read;
    avfs->write    = filt_write;
    avfs->getattr  = filt_getattr;
    avfs->setattr  = filt_setattr;
    avfs->truncate = filt_truncate;

    *resp = avfs;

    return 0;

Here is the call graph for this function:

Here is the caller graph for this function: