From baef5865819dcabf5229f3e02f755745d326374f Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 8 Jun 2010 15:57:36 +0200 Subject: [PATCH] fix unexported function calls --- src/mod_pubsub/node_flat_odbc.erl | 8 ++++++-- src/mod_pubsub/node_public.erl | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mod_pubsub/node_flat_odbc.erl b/src/mod_pubsub/node_flat_odbc.erl index f259260b6..2d33188af 100644 --- a/src/mod_pubsub/node_flat_odbc.erl +++ b/src/mod_pubsub/node_flat_odbc.erl @@ -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"; diff --git a/src/mod_pubsub/node_public.erl b/src/mod_pubsub/node_public.erl index 6063bc17d..720ab706b 100644 --- a/src/mod_pubsub/node_public.erl +++ b/src/mod_pubsub/node_public.erl @@ -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).