diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-03-06 20:31:04 +0200 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-03-06 20:31:04 +0200 |
commit | 3cea8614816e68db569bbea21134c64273e037b5 (patch) | |
tree | 8fa552187ad145b9ccd80fe984969b2944f0926a /node.h | |
parent | 2fc7f8c49fc34cd2db65c36400200082a62138a1 (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.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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__*/ |