summaryrefslogtreecommitdiff
path: root/lnode.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-07-19 00:41:32 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-07-19 00:41:32 +0300
commitef6b6263abd1d58ebefe3c8b751c9148459c9638 (patch)
treeaae08bd19811a3a11820279c45f25e588928ec76 /lnode.h
parentc9c70745fbdb4be82796f94e5601109d9071bb46 (diff)
Added the code for looking up files with names like 'file,,x'.
The user can now request files with special names like 'file,,x' and the proxy will start the translator 'x' on file 'file' and return the port to the user. If 'x' is not an absolute path, the default prefix '/hurd/' is added to it.
Diffstat (limited to 'lnode.h')
-rw-r--r--lnode.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lnode.h b/lnode.h
index 7c42c8d4f..9ca1ef2c5 100644
--- a/lnode.h
+++ b/lnode.h
@@ -48,6 +48,17 @@ struct lnode
/*the full path to the lnode*/
char * path;
+ /*the malloced set of translators which have to be stacked upon this node
+ and upon its children; the corresponding translators will have to decide
+ on their own whether to accept directories or not*/
+ char * trans;
+
+ /*the number of translators listed in `translators`*/
+ size_t ntrans;
+
+ /*the length of the list of translators (in bytes)*/
+ size_t translen;
+
/*the associated flags*/
int flags;
@@ -140,4 +151,13 @@ lnode_uninstall
lnode_t * node
);
/*----------------------------------------------------------------------------*/
+/*Constructs a list of translators that were set on the ancestors of `node`*/
+error_t
+lnode_list_translators
+ (
+ lnode_t * node,
+ char ** trans, /*the malloced list of 0-separated strings*/
+ size_t * ntrans /*the number of elements in `trans`*/
+ );
+/*----------------------------------------------------------------------------*/
#endif /*__LNODE_H__*/