aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ejabberd_sm.hrl5
-rw-r--r--include/pubsub.hrl5
2 files changed, 8 insertions, 2 deletions
diff --git a/include/ejabberd_sm.hrl b/include/ejabberd_sm.hrl
index bae60ccd3..38298d66a 100644
--- a/include/ejabberd_sm.hrl
+++ b/include/ejabberd_sm.hrl
@@ -3,10 +3,11 @@
-record(session, {sid, usr, us, priority, info}).
-record(session_counter, {vhost, count}).
--type sid() :: {erlang:timestamp(), pid()}.
+-type sid() :: {erlang:timestamp(), pid()} | {erlang:timestamp(), undefined}.
-type ip() :: {inet:ip_address(), inet:port_number()} | undefined.
-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
- | {oor, boolean()} | {auth_module, atom()}].
+ | {oor, boolean()} | {auth_module, atom()}
+ | {num_stanzas_in, non_neg_integer()}].
-type prio() :: undefined | integer().
-endif.
diff --git a/include/pubsub.hrl b/include/pubsub.hrl
index 3aa090d3b..a05807247 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'