From 5d92dce21dbda86d4a2b32415db84f8c3625815b Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 8 Feb 2010 17:54:11 +0100 Subject: [PATCH] Update spec of node_hometree get_states (thanks to Magnus Henoch) --- src/mod_pubsub/node_hometree.erl | 3 ++- src/mod_pubsub/node_hometree_odbc.erl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod_pubsub/node_hometree.erl b/src/mod_pubsub/node_hometree.erl index 19e2f5dc9..98f1141ab 100644 --- a/src/mod_pubsub/node_hometree.erl +++ b/src/mod_pubsub/node_hometree.erl @@ -816,8 +816,9 @@ get_nodes_helper(NodeTree, false end. -%% @spec (NodeId) -> [States] | [] +%% @spec (NodeId) -> {result, [State] | []} %% NodeId = mod_pubsub:pubsubNodeId() +%% State = mod_pubsub:pubsubState() %% @doc Returns the list of stored states for a given node. %%

For the default PubSub module, states are stored in Mnesia database.

%%

We can consider that the pubsub_state table have been created by the main diff --git a/src/mod_pubsub/node_hometree_odbc.erl b/src/mod_pubsub/node_hometree_odbc.erl index df9216ec2..51b1c0e02 100644 --- a/src/mod_pubsub/node_hometree_odbc.erl +++ b/src/mod_pubsub/node_hometree_odbc.erl @@ -870,8 +870,9 @@ get_nodes_helper(NodeTree, false end. -%% @spec (NodeId) -> [States] | [] +%% @spec (NodeId) -> {result, [State] | []} %% NodeId = mod_pubsub:pubsubNodeId() +%% State = mod_pubsub:pubsubState() %% @doc Returns the list of stored states for a given node. %%

For the default PubSub module, states are stored in Mnesia database.

%%

We can consider that the pubsub_state table have been created by the main