diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-09 10:56:32 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-08-09 10:56:32 +0300 |
commit | 522a186a3822a3fdb04a423b2238aab2fcfb4b1c (patch) | |
tree | 09f280636bb14db2c5132c567b335529d758d0a0 /include/xmpp_codec.hrl | |
parent | Change code to reflect recent changes in fxml_gen (diff) |
Improve some type specs
Diffstat (limited to '')
-rw-r--r-- | include/xmpp_codec.hrl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/xmpp_codec.hrl b/include/xmpp_codec.hrl index 935607de9..3424ec3b9 100644 --- a/include/xmpp_codec.hrl +++ b/include/xmpp_codec.hrl @@ -178,8 +178,8 @@ -record(private, {xml_els = [] :: [fxml:xmlel()]}). -type private() :: #private{}. --record(db_verify, {from :: jid:jid(), - to :: jid:jid(), +-record(db_verify, {from = <<>> :: binary(), + to = <<>> :: binary(), id = <<>> :: binary(), type :: 'error' | 'invalid' | 'valid', key = <<>> :: binary(), @@ -361,7 +361,7 @@ -record(caps, {node = <<>> :: binary(), version = <<>> :: binary(), hash = <<>> :: binary(), - exts = [] :: binary() | []}). + exts = [] :: [binary()]}). -type caps() :: #caps{}. -record(muc, {history :: #muc_history{}, @@ -428,8 +428,8 @@ userid :: binary()}). -type vcard_email() :: #vcard_email{}. --record(db_result, {from :: jid:jid(), - to :: jid:jid(), +-record(db_result, {from = <<>> :: binary(), + to = <<>> :: binary(), type :: 'error' | 'invalid' | 'valid', key = <<>> :: binary(), sub_els = [] :: [xmpp_element() | fxml:xmlel()]}). |