diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2009-05-29 02:14:07 +0000 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2009-05-29 02:14:07 +0000 |
commit | fa5b06f542e928b884cf2a12e1abe6a82a6f80cb (patch) | |
tree | 263cc7b450cdc926f90b7995c4773a4ca2cee2ba /src/mod_pubsub/pubsub.hrl | |
parent | fix 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.hrl | 13 |
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}). |