aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mod_announce.hrl5
-rw-r--r--include/mod_caps.hrl4
-rw-r--r--include/mod_irc.hrl15
-rw-r--r--include/mod_last.hrl3
-rw-r--r--include/mod_private.hrl4
-rw-r--r--include/mod_shared_roster.hrl5
-rw-r--r--include/mod_vcard.hrl8
-rw-r--r--include/mod_vcard_xupdate.hrl2
8 files changed, 46 insertions, 0 deletions
diff --git a/include/mod_announce.hrl b/include/mod_announce.hrl
new file mode 100644
index 000000000..83d72aaf1
--- /dev/null
+++ b/include/mod_announce.hrl
@@ -0,0 +1,5 @@
+-record(motd, {server = <<"">> :: binary(),
+ packet = #xmlel{} :: xmlel()}).
+
+-record(motd_users, {us = {<<"">>, <<"">>} :: {binary(), binary()} | '$1',
+ dummy = [] :: [] | '_'}).
diff --git a/include/mod_caps.hrl b/include/mod_caps.hrl
new file mode 100644
index 000000000..067df9490
--- /dev/null
+++ b/include/mod_caps.hrl
@@ -0,0 +1,4 @@
+-record(caps_features,
+ {node_pair = {<<"">>, <<"">>} :: {binary(), binary()},
+ features = [] :: [binary()] | pos_integer()
+ }).
diff --git a/include/mod_irc.hrl b/include/mod_irc.hrl
new file mode 100644
index 000000000..b9696a88b
--- /dev/null
+++ b/include/mod_irc.hrl
@@ -0,0 +1,15 @@
+-type conn_param() :: {binary(), binary(), inet:port_number(), binary()} |
+ {binary(), binary(), inet:port_number()} |
+ {binary(), binary()} |
+ {binary()}.
+
+-type irc_data() :: [{username, binary()} | {connections_params, [conn_param()]}].
+
+-record(irc_connection,
+ {jid_server_host = {#jid{}, <<"">>, <<"">>} :: {jid(), binary(), binary()},
+ pid = self() :: pid()}).
+
+-record(irc_custom,
+ {us_host = {{<<"">>, <<"">>}, <<"">>} :: {{binary(), binary()},
+ binary()},
+ data = [] :: irc_data()}).
diff --git a/include/mod_last.hrl b/include/mod_last.hrl
new file mode 100644
index 000000000..494bf7b0c
--- /dev/null
+++ b/include/mod_last.hrl
@@ -0,0 +1,3 @@
+-record(last_activity, {us = {<<"">>, <<"">>} :: {binary(), binary()},
+ timestamp = 0 :: non_neg_integer(),
+ status = <<"">> :: binary()}).
diff --git a/include/mod_private.hrl b/include/mod_private.hrl
new file mode 100644
index 000000000..d833af35f
--- /dev/null
+++ b/include/mod_private.hrl
@@ -0,0 +1,4 @@
+-record(private_storage,
+ {usns = {<<"">>, <<"">>, <<"">>} :: {binary(), binary(), binary() |
+ '$1' | '_'},
+ xml = #xmlel{} :: xmlel() | '_' | '$1'}).
diff --git a/include/mod_shared_roster.hrl b/include/mod_shared_roster.hrl
new file mode 100644
index 000000000..1f96b3034
--- /dev/null
+++ b/include/mod_shared_roster.hrl
@@ -0,0 +1,5 @@
+-record(sr_group, {group_host = {<<"">>, <<"">>} :: {'$1' | binary(), '$2' | binary()},
+ opts = [] :: list() | '_' | '$2'}).
+
+-record(sr_user, {us = {<<"">>, <<"">>} :: {binary(), binary()},
+ group_host = {<<"">>, <<"">>} :: {binary(), binary()}}).
diff --git a/include/mod_vcard.hrl b/include/mod_vcard.hrl
new file mode 100644
index 000000000..3bd62b2eb
--- /dev/null
+++ b/include/mod_vcard.hrl
@@ -0,0 +1,8 @@
+-record(vcard_search,
+ {us, user, luser, fn, lfn, family, lfamily, given,
+ lgiven, middle, lmiddle, nickname, lnickname, bday,
+ lbday, ctry, lctry, locality, llocality, email, lemail,
+ orgname, lorgname, orgunit, lorgunit}).
+
+-record(vcard, {us = {<<"">>, <<"">>} :: {binary(), binary()} | binary(),
+ vcard = #xmlel{} :: xmlel()}).
diff --git a/include/mod_vcard_xupdate.hrl b/include/mod_vcard_xupdate.hrl
new file mode 100644
index 000000000..8634597aa
--- /dev/null
+++ b/include/mod_vcard_xupdate.hrl
@@ -0,0 +1,2 @@
+-record(vcard_xupdate, {us = {<<>>, <<>>} :: {binary(), binary()},
+ hash = <<>> :: binary()}).