mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Include session record from header file instead of duplicating it
This commit is contained in:
parent
3af507cc43
commit
9574e71e8d
@ -1,3 +1,6 @@
|
|||||||
|
-ifndef(EJABBERD_SM_HRL).
|
||||||
|
-define(EJABBERD_SM_HRL, true).
|
||||||
|
|
||||||
-record(session, {sid, usr, us, priority, info}).
|
-record(session, {sid, usr, us, priority, info}).
|
||||||
-record(session_counter, {vhost, count}).
|
-record(session_counter, {vhost, count}).
|
||||||
-type sid() :: {erlang:timestamp(), pid()}.
|
-type sid() :: {erlang:timestamp(), pid()}.
|
||||||
@ -5,3 +8,5 @@
|
|||||||
-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
|
-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
|
||||||
| {oor, boolean()} | {auth_module, atom()}].
|
| {oor, boolean()} | {auth_module, atom()}].
|
||||||
-type prio() :: undefined | integer().
|
-type prio() :: undefined | integer().
|
||||||
|
|
||||||
|
-endif.
|
||||||
|
@ -89,15 +89,13 @@
|
|||||||
stats/1, stats/2
|
stats/1, stats/2
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
-include("ejabberd_commands.hrl").
|
-include("ejabberd_commands.hrl").
|
||||||
-include("mod_roster.hrl").
|
-include("mod_roster.hrl").
|
||||||
|
-include("ejabberd_sm.hrl").
|
||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
|
|
||||||
%% Copied from ejabberd_sm.erl
|
|
||||||
-record(session, {sid, usr, us, priority, info}).
|
|
||||||
|
|
||||||
|
|
||||||
%%%
|
%%%
|
||||||
%%% gen_mod
|
%%% gen_mod
|
||||||
%%%
|
%%%
|
||||||
|
Loading…
Reference in New Issue
Block a user