diff options
author | Willy Tarreau <willy@wtap.(none)> | 2006-07-26 10:46:55 +0200 |
---|---|---|
committer | Willy Tarreau <willy@wtap.(none)> | 2006-07-26 10:46:55 +0200 |
commit | fcb250efba23ae522c4c8cb03c47dd40edcf9603 (patch) | |
tree | 3756bd1748842a3f1049d857e8412f148a8741b9 /flx/input_fs.h | |
parent | Initial commit (diff) | |
download | flxutils-fcb250efba23ae522c4c8cb03c47dd40edcf9603.tar.xz |
[RELEASE] flxutils-0.1.4.2v0.1.4.2
Diffstat (limited to 'flx/input_fs.h')
-rw-r--r-- | flx/input_fs.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flx/input_fs.h b/flx/input_fs.h new file mode 100644 index 0000000..a1594cf --- /dev/null +++ b/flx/input_fs.h @@ -0,0 +1,29 @@ +#ifndef __INPUT_FS_H__ +#define __INPUT_FS_H__ + +#include "utils.h" +#include "flx.h" +#include "flx_fcntl.h" + +typedef struct s_fs_status t_fs_status; + +struct s_fs_status { + char bpath[BUFFER_LENGTH]; /* current real path */ + char cpath[BUFFER_LENGTH]; /* current path representation */ + off_t off_dir; /* dir offset for backup/restore */ + int status; /* action status */ + int options; /* read or write options */ + void *dirnames; /* stack for directory backup */ + dev_t dev; /* base device number */ + int depth; /* depth level */ +}; + +extern int input_fs_fcntl(t_fs_status *env, int cmd); + +extern int input_fs_read(t_fs_status *spec, t_ft *tree); +extern t_fs_status *input_fs_open(char *desc, char *opts); +extern t_fs_status *input_fs_close(t_fs_status *spec); + +#endif /* __INPUT_FS_H__ */ + + |