diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-01-29 17:16:06 +0200 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-01-29 17:16:06 +0200 |
commit | 966522f2fa9239d9c2ba08152cc7019d996c2516 (patch) | |
tree | ad2ccd0ed60cd3c53d7becb55f20d5cd858e332a /node.h | |
parent | b7d7c04378644966ae873878b5485fac1a708dc9 (diff) |
Added the function to create proxy nodes for ports
Since we want netfs_S_dir_lookup to ask the client to do a
retry when it sets a new dynamic translator, nsmux has to give
the client a *proxy* of the port to the root of the current
dynamic translator, so that the retry gets back in nsmux. For
this we need to create proxy nodes for ports, which is precisely
what node_create_from_port does.
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -119,6 +119,9 @@ error_t node_create (lnode_t * lnode, node_t ** node); /*Derives a new proxy from `lnode`*/ error_t node_create_proxy (lnode_t * lnode, node_t ** node); /*---------------------------------------------------------------------------*/ +/*Creates a proxy (or a shadow) node for the supplied port*/ +error_t node_create_from_port (mach_port_t port, node_t ** node); +/*---------------------------------------------------------------------------*/ /*Destroys the specified node and removes a light reference from the associated light node*/ void node_destroy (node_t * np); |