summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ejabberd_sm.hrl7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ejabberd_sm.hrl b/include/ejabberd_sm.hrl
new file mode 100644
index 00000000..756f4b88
--- /dev/null
+++ b/include/ejabberd_sm.hrl
@@ -0,0 +1,7 @@
+-record(session, {sid, usr, us, priority, info}).
+-record(session_counter, {vhost, count}).
+-type sid() :: {erlang:timestamp(), pid()}.
+-type ip() :: {inet:ip_address(), inet:port_number()} | undefined.
+-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
+ | {oor, boolean()} | {auth_module, atom()}].
+-type prio() :: undefined | integer().