summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2009-01-29 17:16:06 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-01-29 17:16:06 +0200
commit966522f2fa9239d9c2ba08152cc7019d996c2516 (patch)
treead2ccd0ed60cd3c53d7becb55f20d5cd858e332a /node.h
parentb7d7c04378644966ae873878b5485fac1a708dc9 (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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.h b/node.h
index 3611945d6..89de42118 100644
--- a/node.h
+++ b/node.h
@@ -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);