summaryrefslogtreecommitdiff
path: root/src/mod_pubsub/pubsub.hrl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2009-05-29 02:14:07 +0000
committerChristophe Romain <christophe.romain@process-one.net>2009-05-29 02:14:07 +0000
commitfa5b06f542e928b884cf2a12e1abe6a82a6f80cb (patch)
tree263cc7b450cdc926f90b7995c4773a4ca2cee2ba /src/mod_pubsub/pubsub.hrl
parentfix nodetree virtual to allow node subscription (diff)
apply patch from EJAB-845
SVN Revision: 2118
Diffstat (limited to 'src/mod_pubsub/pubsub.hrl')
-rw-r--r--src/mod_pubsub/pubsub.hrl13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mod_pubsub/pubsub.hrl b/src/mod_pubsub/pubsub.hrl
index b896d461..ee129aa9 100644
--- a/src/mod_pubsub/pubsub.hrl
+++ b/src/mod_pubsub/pubsub.hrl
@@ -101,13 +101,13 @@
%%% stateid = {ljid(), nodeidx()}},
%%% items = [ItemId::string()],
%%% affiliation = affiliation(),
-%%% subscription = subscription()}.
+%%% subscriptions = [subscription()]}.
%%% <p>This is the format of the <tt>affiliations</tt> table. The type of the
%%% table is: <tt>set</tt>,<tt>ram/disc</tt>.</p>
-record(pubsub_state, {stateid,
items = [],
affiliation = none,
- subscription = none
+ subscriptions = []
}).
%%% @type pubsubItem() = #pubsub_item{
@@ -123,3 +123,12 @@
payload = []
}).
+
+%% @type pubsubSubscription() = #pubsub_subscription{
+%% subid = string(),
+%% state_key = {ljid(), pubsubNodeId()},
+%% options = [{atom(), term()}]
+%% }.
+%% <p>This is the format of the <tt>subscriptions</tt> table. The type of the
+%% table is: <tt>set</tt>,<tt>ram/disc</tt>.</p>
+-record(pubsub_subscription, {subid, options}).