summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-28 15:10:41 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-07-28 15:10:41 +0300
commitb31ebd2ea012ba2a81ec095189f46974e1905929 (patch)
treeac075171e69d406ef2c2da4526ccaa90db839acb /include
parentRewrite mod_register to use XML generator (diff)
Rewrite captcha to use XML generator
Diffstat (limited to 'include')
-rw-r--r--include/xmpp_codec.hrl42
1 files changed, 36 insertions, 6 deletions
diff --git a/include/xmpp_codec.hrl b/include/xmpp_codec.hrl
index 43bb6b09..1ede0ff1 100644
--- a/include/xmpp_codec.hrl
+++ b/include/xmpp_codec.hrl
@@ -294,6 +294,12 @@
type :: 'none' | 'pending' | 'subscribed' | 'unconfigured'}).
-type pubsub_subscription() :: #pubsub_subscription{}.
+-record(bob_data, {cid :: binary(),
+ 'max-age' :: non_neg_integer(),
+ type :: binary(),
+ data = <<>> :: any()}).
+-type bob_data() :: #bob_data{}.
+
-record(muc_item, {actor :: #muc_actor{},
continue :: binary(),
reason = <<>> :: 'undefined' | binary(),
@@ -404,7 +410,8 @@
required = false :: boolean(),
desc :: binary(),
values = [] :: [binary()],
- options = [] :: [#xdata_option{}]}).
+ options = [] :: [#xdata_option{}],
+ sub_els = [] :: [any()]}).
-type xdata_field() :: #xdata_field{}.
-record(version, {name :: binary(),
@@ -482,6 +489,15 @@
number :: binary()}).
-type vcard_tel() :: #vcard_tel{}.
+-record(media_uri, {type :: binary(),
+ uri = <<>> :: binary()}).
+-type media_uri() :: #media_uri{}.
+
+-record(media, {height :: non_neg_integer(),
+ width :: non_neg_integer(),
+ uri = [] :: [#media_uri{}]}).
+-type media() :: #media{}.
+
-record(muc_destroy, {xmlns :: binary(),
jid :: any(),
reason = <<>> :: 'undefined' | binary(),
@@ -531,6 +547,11 @@
url = [] :: [#bookmark_url{}]}).
-type bookmark_storage() :: #bookmark_storage{}.
+-record(oob_x, {url :: binary(),
+ desc = <<>> :: binary(),
+ sid = <<>> :: binary()}).
+-type oob_x() :: #oob_x{}.
+
-record(vcard_sound, {phonetic :: binary(),
binval :: any(),
extval :: binary()}).
@@ -582,6 +603,9 @@
fields = [] :: [#xdata_field{}]}).
-type xdata() :: #xdata{}.
+-record(xcaptcha, {xdata :: #xdata{}}).
+-type xcaptcha() :: #xcaptcha{}.
+
-record(adhoc_command, {node :: binary(),
action = execute :: 'cancel' | 'complete' | 'execute' | 'next' | 'prev',
sid :: binary(),
@@ -647,7 +671,8 @@
misc :: 'none' | binary(),
text :: 'none' | binary(),
key :: 'none' | binary(),
- xdata :: #xdata{}}).
+ xdata :: #xdata{},
+ sub_els = [] :: [any()]}).
-type register() :: #register{}.
-record(disco_info, {node :: binary(),
@@ -807,6 +832,8 @@
version() |
pubsub_affiliation() |
mam_fin() |
+ bob_data() |
+ media() |
sm_a() |
carbons_sent() |
mam_archived() |
@@ -880,11 +907,8 @@
sasl_failure() |
bookmark_storage() |
muc_decline() |
- sasl_auth() |
- p1_push() |
legacy_auth() |
search() |
- pubsub_publish() |
unblock() |
nick() |
p1_ack() |
@@ -892,6 +916,7 @@
mix_join() |
xmpp_session() |
xdata() |
+ xcaptcha() |
iq() |
streamhost() |
bind() |
@@ -917,6 +942,7 @@
starttls() |
mam_prefs() |
sasl_mechanisms() |
+ media_uri() |
muc_destroy() |
vcard_key() |
csi() |
@@ -949,4 +975,8 @@
expire() |
muc_unsubscribe() |
pubsub_unsubscribe() |
- chatstate().
+ chatstate() |
+ sasl_auth() |
+ p1_push() |
+ oob_x() |
+ pubsub_publish().