diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-07-22 18:10:44 +0300 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-07-22 18:10:44 +0300 |
commit | 13fa6563250dcd4b2d1a54f15aba1bb7d8aace28 (patch) | |
tree | f70c733622bd20dada164bf6b072c4bfb7bc22e4 /lnode.h | |
parent | ef6b6263abd1d58ebefe3c8b751c9148459c9638 (diff) |
Added the possibility to propagate translators onto directories. Fixed bugs.
Now the user can enter directories using the following command:
cd dir,,x
All files in this directory will then be implicitly translated
by translator 'x'; in other words, if there is a file 'file' in
directory 'dir', after executing the command mentioned above,
and after running
cat file
the user will obtain the content of 'file' translated by 'x'.
Also fixed several rather serious bugs in lookup of file names
of the type 'file,,x'.
Diffstat (limited to 'lnode.h')
-rw-r--r-- | lnode.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -32,6 +32,14 @@ /*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ +/*--------Macros--------------------------------------------------------------*/ +/*The possible flags in an lnode*/ +#define FLAG_LNODE_DIR 0x00000001 /*the lnode is a directory*/ +#define FLAG_LNODE_TRANSLATED 0x00000002 /*all appropriate translators + have already been set on this node*/ +/*----------------------------------------------------------------------------*/ + +/*----------------------------------------------------------------------------*/ /*A candy synonym for the fundamental libnetfs node*/ typedef struct node node_t; /*----------------------------------------------------------------------------*/ |