]> granicus.if.org Git - ejabberd/commit
Change routing API
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 16 Feb 2017 08:00:26 +0000 (11:00 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 16 Feb 2017 08:10:24 +0000 (11:10 +0300)
commit8b2d3084986defd6045a0c02706415e0e7ae4b3f
tree419b64fc2d07646d221fdfa2f526e057fb34c6d2
parent26a581174485ca90782e59086cea0c3cc09133ea
Change routing API

Now 'From' and 'To' arguments must be omitted in functions
and structures related to routing.
The commit deprecates the following functions:
     ejabberd_router:route/3 in favor of ejabberd_router:route/1
     ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2
     ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2
     ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3
The format of {route, From, To, Packet} is changed in favor of {route, Packet}
46 files changed:
src/ejabberd_bosh.erl
src/ejabberd_c2s.erl
src/ejabberd_local.erl
src/ejabberd_piefxis.erl
src/ejabberd_router.erl
src/ejabberd_router_multicast.erl
src/ejabberd_s2s.erl
src/ejabberd_s2s_in.erl
src/ejabberd_s2s_out.erl
src/ejabberd_service.erl
src/ejabberd_sm.erl
src/ejabberd_system_monitor.erl
src/gen_iq_handler.erl
src/jd2ejd.erl
src/mod_admin_extra.erl
src/mod_announce.erl
src/mod_blocking.erl
src/mod_caps.erl
src/mod_carboncopy.erl
src/mod_delegation.erl
src/mod_echo.erl
src/mod_http_upload.erl
src/mod_irc.erl
src/mod_irc_connection.erl
src/mod_mam.erl
src/mod_metrics.erl
src/mod_mix.erl
src/mod_muc.erl
src/mod_muc_admin.erl
src/mod_muc_room.erl
src/mod_multicast.erl
src/mod_offline.erl
src/mod_ping.erl
src/mod_privacy.erl
src/mod_privilege.erl
src/mod_proxy65_service.erl
src/mod_pubsub.erl
src/mod_register.erl
src/mod_roster.erl
src/mod_shared_roster.erl
src/mod_sm.erl
src/mod_vcard.erl
test/carbons_tests.erl
test/ejabberd_SUITE.erl
test/privacy_tests.erl
test/sm_tests.erl