summaryrefslogtreecommitdiff
path: root/lnode.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-07-22 18:10:44 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-07-22 18:10:44 +0300
commit13fa6563250dcd4b2d1a54f15aba1bb7d8aace28 (patch)
treef70c733622bd20dada164bf6b072c4bfb7bc22e4 /lnode.h
parentef6b6263abd1d58ebefe3c8b751c9148459c9638 (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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lnode.h b/lnode.h
index 9ca1ef2c5..674102523 100644
--- a/lnode.h
+++ b/lnode.h
@@ -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;
/*----------------------------------------------------------------------------*/