aboutsummaryrefslogtreecommitdiff
path: root/include/mod_offline.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'include/mod_offline.hrl')
-rw-r--r--include/mod_offline.hrl11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mod_offline.hrl b/include/mod_offline.hrl
new file mode 100644
index 000000000..c4c70604a
--- /dev/null
+++ b/include/mod_offline.hrl
@@ -0,0 +1,11 @@
+-record(offline_msg,
+ {us = {<<"">>, <<"">>} :: {binary(), binary()},
+ timestamp = now() :: erlang:timestamp() | '_',
+ expire = now() :: erlang:timestamp() | never | '_',
+ from = #jid{} :: jid() | '_',
+ to = #jid{} :: jid() | '_',
+ packet = #xmlel{} :: xmlel() | '_'}).
+
+-record(state,
+ {host = <<"">> :: binary(),
+ access_max_offline_messages}).