summaryrefslogtreecommitdiff
path: root/include/pubsub.hrl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2015-07-01 17:18:32 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-05-25 08:40:12 +0200
commitc958fa2f0602bd98319c4d83f54ded8fb7623808 (patch)
tree651c22aa3a5d8ee73257089b7b37c8746ded65e6 /include/pubsub.hrl
parentmod_mam_mnesia: Clarify error message (diff)
Add support for PubSub publishing options
Add code necessary to support publishing options as described in XEP-0060, #7.1.5. A node plugin that expects publishing options must add <<"publish-options">> to the features/0 list and then handle the publishing options handed over to the publish_item/7 call. Signed-off-by: Christian Ulrich <christian@rechenwerk.net>
Diffstat (limited to 'include/pubsub.hrl')
-rw-r--r--include/pubsub.hrl5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pubsub.hrl b/include/pubsub.hrl
index 3aa090d3..a0580724 100644
--- a/include/pubsub.hrl
+++ b/include/pubsub.hrl
@@ -93,7 +93,12 @@
-type(subOptions() :: [mod_pubsub:subOption(),...]).
+-type(pubOption() ::
+ {Option::binary(),
+ Values::[binary()]
+}).
+-type(pubOptions() :: [mod_pubsub:pubOption()]).
-type(affiliation() :: 'none'
| 'owner'