24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02:00

fix unexported function calls

This commit is contained in:
Christophe Romain 2010-06-08 15:57:36 +02:00
parent db17504c82
commit baef586581
2 changed files with 7 additions and 3 deletions

View File

@ -74,7 +74,9 @@
get_states/1,
get_state/2,
set_state/1,
get_items/7,
get_items/6,
get_items/3,
get_items/2,
get_item/7,
get_item/2,
@ -89,9 +91,11 @@
decode_jid/1,
decode_node/1,
decode_affiliation/1,
decode_subscription/1,
decode_subscriptions/1,
encode_jid/1,
encode_affiliation/1,
encode_subscription/1
encode_subscriptions/1
]).
%% ================
@ -1289,7 +1293,7 @@ update_subscription(NodeId, JID, Subscription) ->
"values('", NodeId, "', '", J, "', 'n', '", S, "');"])
end.
decode_jid(SJID) -> jlib:short_prepd_jid(jlib:string_to_jid(SJID)).
decode_jid(SJID) -> jlib:short_prepd_jid(jlib:string_to_jid(SJID)). %% TODO rewrite using exmpp
decode_node(N) -> ?PUBSUB:string_to_node(N).
@ -1311,7 +1315,7 @@ decode_subscriptions(Subscriptions) ->
end
end, [], string:tokens(Subscriptions, ",")).
encode_jid(JID) -> ?PUBSUB:escape(jlib:jid_to_string(JID)).
encode_jid(JID) -> ?PUBSUB:escape(jlib:jid_to_string(JID)). %% TODO rewrite using exmpp
encode_affiliation(owner) -> "o";
encode_affiliation(publisher) -> "p";

View File

@ -167,7 +167,7 @@ get_subscriptions(NodeId, Owner) ->
node_flat:get_subscriptions(NodeId, Owner).
set_subscriptions(NodeId, Owner, Subscription, SubId) ->
node_flat:set_subscription(NodeId, Owner, Subscription, SubId).
node_flat:set_subscriptions(NodeId, Owner, Subscription, SubId).
get_pending_nodes(Host, Owner) ->
node_flat:get_pending_nodes(Host, Owner).