mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Rewrite mod_sic to use XML generator
This commit is contained in:
parent
f19d2fdcff
commit
d2d3b961eb
5 changed files with 263 additions and 50 deletions
|
@ -161,6 +161,8 @@
|
|||
-define(NS_HTTP_UPLOAD_OLD, <<"eu:siacs:conversations:http:upload">>).
|
||||
-define(NS_THUMBS_1, <<"urn:xmpp:thumbs:1">>).
|
||||
-define(NS_NICK, <<"http://jabber.org/protocol/nick">>).
|
||||
-define(NS_SIC_0, <<"urn:xmpp:sic:0">>).
|
||||
-define(NS_SIC_1, <<"urn:xmpp:sic:1">>).
|
||||
-define(NS_MIX_0, <<"urn:xmpp:mix:0">>).
|
||||
-define(NS_MIX_SERVICEINFO_0, <<"urn:xmpp:mix:0#serviceinfo">>).
|
||||
-define(NS_MIX_NODES_MESSAGES, <<"urn:xmpp:mix:nodes:messages">>).
|
||||
|
|
|
@ -343,6 +343,11 @@
|
|||
items = [] :: [#pubsub_item{}]}).
|
||||
-type pubsub_items() :: #pubsub_items{}.
|
||||
|
||||
-record(sic, {ip :: any(),
|
||||
port :: non_neg_integer(),
|
||||
xmlns :: binary()}).
|
||||
-type sic() :: #sic{}.
|
||||
|
||||
-record(carbons_sent, {forwarded :: #forwarded{}}).
|
||||
-type carbons_sent() :: #carbons_sent{}.
|
||||
|
||||
|
@ -909,7 +914,6 @@
|
|||
muc_decline() |
|
||||
legacy_auth() |
|
||||
search() |
|
||||
unblock() |
|
||||
nick() |
|
||||
p1_ack() |
|
||||
block() |
|
||||
|
@ -939,6 +943,7 @@
|
|||
stream_features() |
|
||||
stats() |
|
||||
pubsub_items() |
|
||||
sic() |
|
||||
starttls() |
|
||||
mam_prefs() |
|
||||
sasl_mechanisms() |
|
||||
|
@ -979,4 +984,5 @@
|
|||
sasl_auth() |
|
||||
p1_push() |
|
||||
oob_x() |
|
||||
pubsub_publish().
|
||||
pubsub_publish() |
|
||||
unblock().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue