aboutsummaryrefslogtreecommitdiff
path: root/include/ejabberd_sm.hrl
blob: f86ab1c15fab39a72fcae812d722c1828e1c2ab6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
-ifndef(EJABBERD_SM_HRL).
-define(EJABBERD_SM_HRL, true).

-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()}
                 | {num_stanzas_in, non_neg_integer()}].
-type prio() :: undefined | integer().

-endif.