summaryrefslogtreecommitdiff
path: root/src/mod_pubsub/node_dag.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2009-10-20 15:03:07 +0000
committerChristophe Romain <christophe.romain@process-one.net>2009-10-20 15:03:07 +0000
commit8ce1e790ac788b8a0c3a2cab352dbb25f4b374f4 (patch)
treebe39dbe996ef704c8a121263e107093f710faa90 /src/mod_pubsub/node_dag.erl
parentBody tag not properly closed in HTTP-Bind (thanks to Janusz Dziemidowicz)(EJA... (diff)
does not use slash as default separator in nodename (EJAB-667)
SVN Revision: 2687
Diffstat (limited to 'src/mod_pubsub/node_dag.erl')
-rw-r--r--src/mod_pubsub/node_dag.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mod_pubsub/node_dag.erl b/src/mod_pubsub/node_dag.erl
index f28c338d..b7016946 100644
--- a/src/mod_pubsub/node_dag.erl
+++ b/src/mod_pubsub/node_dag.erl
@@ -52,7 +52,9 @@
get_item/7,
get_item/2,
set_item/1,
- get_item_name/3]).
+ get_item_name/3,
+ node_to_path/1,
+ path_to_node/1]).
init(Host, ServerHost, Opts) ->
@@ -173,3 +175,10 @@ set_item(Item) ->
get_item_name(Host, Node, ID) ->
node_hometree:get_item_name(Host, Node, ID).
+
+node_to_path(Node) ->
+ node_hometree:node_to_path(Node).
+
+path_to_node(Path) ->
+ node_hometree:path_to_node(Path).
+