diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-09-11 18:18:20 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-09-11 18:18:20 +0200 |
commit | 1a320baad896b4f0d7ae6d5170f75d70a9b1020b (patch) | |
tree | 1dcf843f5750b2cd263d1da6c4e814f79fa1af77 /tools/xmpp_codec.hrl | |
parent | Support XEP-0352: Client State Indication (diff) |
Add tests for Client State Indication support
Diffstat (limited to 'tools/xmpp_codec.hrl')
-rw-r--r-- | tools/xmpp_codec.hrl | 246 |
1 files changed, 135 insertions, 111 deletions
diff --git a/tools/xmpp_codec.hrl b/tools/xmpp_codec.hrl index 549c6fb1b..6e142414f 100644 --- a/tools/xmpp_codec.hrl +++ b/tools/xmpp_codec.hrl @@ -8,6 +8,8 @@ -record(text, {lang :: binary(), data :: binary()}). +-record(chatstate_paused, {}). + -record(streamhost, {jid :: any(), host :: binary(), port = 1080 :: non_neg_integer()}). @@ -24,6 +26,8 @@ jid :: any(), subid :: binary()}). +-record(csi_inactive, {}). + -record(ping, {}). -record(delay, {stamp :: any(), @@ -57,6 +61,8 @@ resume = false :: any(), xmlns :: binary()}). +-record(chatstate_gone, {}). + -record(starttls_failure, {}). -record(sasl_challenge, {text :: any()}). @@ -123,14 +129,20 @@ -record(sasl_response, {text :: any()}). +-record(chatstate_inactive, {}). + -record(pubsub_subscribe, {node :: binary(), jid :: any()}). +-record(chatstate_composing, {}). + -record(sasl_auth, {mechanism :: binary(), text :: any()}). -record(p1_push, {}). +-record(feature_csi, {xmlns :: binary()}). + -record(legacy_delay, {stamp :: binary(), from :: any()}). @@ -220,6 +232,8 @@ -record(block_list, {}). +-record(csi_active, {}). + -record(xdata_field, {label :: binary(), type :: 'boolean' | 'fixed' | 'hidden' | 'jid-multi' | 'jid-single' | 'list-multi' | 'list-single' | 'text-multi' | 'text-private' | 'text-single', var :: binary(), @@ -255,6 +269,8 @@ mode = tcp :: 'tcp' | 'udp', sid :: binary()}). +-record(chatstate_active, {}). + -record(vcard_org, {name :: binary(), units = [] :: [binary()]}). @@ -475,114 +491,122 @@ -record(time, {tzo :: any(), utc :: any()}). --type xmpp_element() :: #session{} | - #compression{} | - #pubsub_subscription{} | - #version{} | - #pubsub_affiliation{} | - #muc_admin{} | - #sm_a{} | - #carbons_sent{} | - #p1_rebind{} | - #sasl_abort{} | - #carbons_received{} | - #pubsub_retract{} | - #compressed{} | - #block_list{} | - #'see-other-host'{} | - #starttls_proceed{} | - #sm_resumed{} | - #forwarded{} | - #privacy_list{} | - #text{} | - #vcard_org{} | - #feature_sm{} | - #pubsub_item{} | - #roster_item{} | - #pubsub_event_item{} | - #muc_item{} | - #shim{} | - #caps{} | - #muc{} | - #stream_features{} | - #stats{} | - #pubsub_items{} | - #pubsub_event_items{} | - #disco_items{} | - #pubsub_options{} | - #starttls{} | - #sasl_mechanisms{} | - #sasl_success{} | - #compress{} | - #bytestreams{} | - #vcard_key{} | - #identity{} | - #legacy_delay{} | - #muc_user_destroy{} | - #muc_owner_destroy{} | - #privacy{} | - #delay{} | - #muc_history{} | - #bookmark_url{} | - #vcard_email{} | - #vcard_label{} | - #vcard_tel{} | - #disco_info{} | - #vcard_logo{} | - #vcard_geo{} | - #vcard_photo{} | - #muc_owner{} | - #pubsub{} | - #sm_r{} | - #muc_actor{} | - #error{} | - #stream_error{} | - #feature_register{} | - #roster{} | - #muc_user{} | - #vcard_adr{} | - #register{} | - #muc_invite{} | - #carbons_disable{} | - #bookmark_conference{} | - #time{} | - #sasl_response{} | - #pubsub_subscribe{} | - #presence{} | - #message{} | - #sm_enable{} | - #starttls_failure{} | - #sasl_challenge{} | - #gone{} | - #private{} | - #compress_failure{} | - #sasl_failure{} | - #bookmark_storage{} | - #vcard_name{} | - #sm_resume{} | - #carbons_enable{} | - #carbons_private{} | - #pubsub_unsubscribe{} | - #muc_decline{} | - #sasl_auth{} | - #p1_push{} | - #pubsub_publish{} | - #unblock{} | - #p1_ack{} | - #block{} | - #xdata{} | - #iq{} | - #last{} | - #redirect{} | - #sm_enabled{} | - #pubsub_event{} | - #vcard_sound{} | - #streamhost{} | - #stat{} | - #xdata_field{} | - #bind{} | - #sm_failed{} | - #vcard{} | - #ping{} | - #disco_item{} | - #privacy_item{}. +-type xmpp_codec_type() :: #session{} | + #compression{} | + #pubsub_subscription{} | + #version{} | + #pubsub_affiliation{} | + #muc_admin{} | + #sm_a{} | + #carbons_sent{} | + #p1_rebind{} | + #sasl_abort{} | + #carbons_received{} | + #pubsub_retract{} | + #compressed{} | + #block_list{} | + #'see-other-host'{} | + #starttls_proceed{} | + #sm_resumed{} | + #forwarded{} | + #privacy_list{} | + #text{} | + #vcard_org{} | + #feature_sm{} | + #pubsub_item{} | + #roster_item{} | + #pubsub_event_item{} | + #muc_item{} | + #shim{} | + #pubsub_event_items{} | + #disco_items{} | + #pubsub_options{} | + #sasl_success{} | + #compress{} | + #bytestreams{} | + #vcard_key{} | + #identity{} | + #feature_csi{} | + #legacy_delay{} | + #muc_user_destroy{} | + #muc_owner_destroy{} | + #privacy{} | + #delay{} | + #muc_history{} | + #bookmark_url{} | + #vcard_email{} | + #vcard_label{} | + #vcard_tel{} | + #vcard_logo{} | + #disco_info{} | + #vcard_geo{} | + #vcard_photo{} | + #muc_owner{} | + #pubsub{} | + #sm_r{} | + #muc_actor{} | + #error{} | + #stream_error{} | + #feature_register{} | + #roster{} | + #muc_user{} | + #vcard_adr{} | + #register{} | + #csi_active{} | + #muc_invite{} | + #carbons_disable{} | + #chatstate_active{} | + #bookmark_conference{} | + #time{} | + #sasl_response{} | + #chatstate_inactive{} | + #pubsub_subscribe{} | + #presence{} | + #message{} | + #sm_enable{} | + #chatstate_gone{} | + #starttls_failure{} | + #sasl_challenge{} | + #gone{} | + #private{} | + #compress_failure{} | + #sasl_failure{} | + #bookmark_storage{} | + #vcard_name{} | + #sm_resume{} | + #carbons_enable{} | + #carbons_private{} | + #pubsub_unsubscribe{} | + #csi_inactive{} | + #muc_decline{} | + #sasl_auth{} | + #p1_push{} | + #pubsub_publish{} | + #unblock{} | + #p1_ack{} | + #block{} | + #xdata{} | + #iq{} | + #last{} | + #redirect{} | + #sm_enabled{} | + #pubsub_event{} | + #vcard_sound{} | + #chatstate_paused{} | + #streamhost{} | + #stat{} | + #xdata_field{} | + #bind{} | + #sm_failed{} | + #vcard{} | + #chatstate_composing{} | + #ping{} | + #disco_item{} | + #privacy_item{} | + #caps{} | + #muc{} | + #stream_features{} | + #stats{} | + #pubsub_items{} | + #starttls{} | + #sasl_mechanisms{}. |