summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2009-03-06 20:31:04 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-03-06 20:31:04 +0200
commit3cea8614816e68db569bbea21134c64273e037b5 (patch)
tree8fa552187ad145b9ccd80fe984969b2944f0926a /node.h
parent2fc7f8c49fc34cd2db65c36400200082a62138a1 (diff)
Added proxy nodes in the dynamic translator stack
When setting dynamic translators, nsmux used to offer the client a port to the dynamic translator directly. Now it gives off a proxy node, which contains a port to the translator. Also, proxy nodes are now included in dynamic translator stacks. Dynamic translator stacks now consist of the following interconnected conceptual blocks: -- shadow node -- translator -- proxy node --
Diffstat (limited to 'node.h')
-rw-r--r--node.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/node.h b/node.h
index 9ae760f01..7cb154386 100644
--- a/node.h
+++ b/node.h
@@ -151,9 +151,19 @@ error_t node_unlink_file (node_t * dir, char *name);
/*Starts translator `trans` on the (shadow) node `np`, which should
mirror the file `filename`, and returns the port `port` to the root
of the translator opened as `flags.`*/
-error_t
+error_t
node_set_translator
(struct protid *diruser, node_t * np, char * trans, int flags,
char * filename, mach_port_t * port);
/*---------------------------------------------------------------------------*/
+/*Gets the port to the supplied node. */
+error_t
+ node_get_port
+ (struct protid * diruser, node_t * np, int flags, mach_port_t * port);
+/*---------------------------------------------------------------------------*/
+/*Gets the send port right to the supplied node. */
+error_t
+ node_get_send_port
+ (struct protid * diruser, node_t * np, int flags, mach_port_t * port);
+/*---------------------------------------------------------------------------*/
#endif /*__NODE_H__*/