aboutsummaryrefslogtreecommitdiff
path: root/include/mod_irc.hrl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-04-14 12:18:04 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-04-14 12:18:04 +0300
commit79d64e0d71ffa8124186f6027d5695b93b8333b7 (patch)
tree00110612d6f184680f6c72d5a53ee648af503872 /include/mod_irc.hrl
parentClean mod_shared_roster.erl from DB specific code (diff)
Clean mod_irc.erl from DB specific code
Diffstat (limited to 'include/mod_irc.hrl')
-rw-r--r--include/mod_irc.hrl15
1 files changed, 15 insertions, 0 deletions
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()}).