24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

add function specification, convert string() to binary(), fix pubsub.hrl (thanks to Karim Gemayel)

This commit is contained in:
Christophe Romain 2010-10-19 17:08:59 +02:00
parent 70cdcfcae1
commit 378b8a60c6
4 changed files with 2238 additions and 1656 deletions

File diff suppressed because it is too large Load Diff

View File

@ -319,7 +319,7 @@ get_entity_subscriptions(Host, JID) ->
(
NodeIdx :: nodeIdx())
-> {'result', []
| [{Entity::fullUsr(), 'none'}]
%| [{Entity::fullUsr(), 'none'}]
| [{Entity::fullUsr(), Subscription::subscription(), SubId::subId()}]}
).

View File

@ -824,7 +824,7 @@ get_entity_subscriptions(Host, #jid{node = U, domain = S, resource = R} = _JID)
(
NodeIdx :: nodeIdx())
-> {'result', []
| [{Entity::fullUsr(), 'none'}]
%| [{Entity::fullUsr(), 'none'}]
%| [{Entity::fullUsr(), Subscription::subscription()}] %% still useful case ?
| [{Entity::fullUsr(), Subscription::subscription(), SubId::subId()}]}
).

View File

@ -55,7 +55,7 @@
%%% Server = binary()
%%% Resource = undefined.
-type(hostPEP() :: {User::binary(), Server::binary, Resource::undefined}).
-type(hostPEP() :: {User::binary(), Server::binary(), Resource::undefined}).
%%% @type host() = hostPubsub() | hostPEP().