Back to index

avfs  1.0.1
state.h
Go to the documentation of this file.
00001 /*
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 2000-2001  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 
00009 #include "avfs.h"
00010 #include "namespace.h"
00011 
00012 struct statefile {
00013     void *data;
00014 
00015     int   (*get) (struct entry *ent, const char *param, char **resp);
00016     int   (*set) (struct entry *ent, const char *param, const char *val);
00017 };
00018 
00019 int av_state_new(struct vmodule *module, const char *name,
00020                    struct namespace **resp, struct avfs **avfsp);