aboutsummaryrefslogtreecommitdiff
path: root/include/mod_irc.hrl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-04-15 15:12:12 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-04-15 15:12:12 +0300
commitfb0ecf33612d5de004817824096d950fac5b5cc3 (patch)
treef29c5855c6737aa11ef1f71dee92a998407df89f /include/mod_irc.hrl
parentAdd preliminary tests on ACL module and prepare clean-up / refactor (diff)
parentClean mod_mam.erl from DB specific code (diff)
Merge branch 'move-db-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()}).