summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2015-03-09 16:39:29 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2015-03-09 16:39:29 +0300
commit36b7da3ad8ae1730ae3095c018bebdc2c4df0f8c (patch)
tree7bdf46a76fbd99b4560bb6574f2a02dc519e80a5 /include
parentSeparate db backend from the SM (diff)
Add forgotten header file
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().