2002-11-18 21:39:47 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%%% File : ejabberd.hrl
|
|
|
|
%%% Author : Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Purpose :
|
|
|
|
%%% Created : 17 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Id : $Id$
|
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
|
2003-01-18 20:42:48 +01:00
|
|
|
-define(VERSION, "0.0.1-alpha").
|
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
%-define(ejabberd_debug, true).
|
|
|
|
%-define(DBGFSM, true).
|
2002-11-18 21:39:47 +01:00
|
|
|
|
|
|
|
-ifdef(ejabberd_debug).
|
|
|
|
-define(DEBUG(Format, Args), io:format("D(~p:~p:~p) : "++Format++"~n",
|
|
|
|
[self(),?MODULE,?LINE]++Args)).
|
|
|
|
-else.
|
|
|
|
-define(DEBUG(F,A),[]).
|
|
|
|
-endif.
|
|
|
|
|
2003-01-15 20:54:44 +01:00
|
|
|
-define(ERROR_MSG(Format, Args),
|
2003-01-24 21:18:33 +01:00
|
|
|
error_logger:format("E(~p:~p:~p): "++Format++"~n",
|
2003-01-15 20:54:44 +01:00
|
|
|
[self(),?MODULE,?LINE]++Args)).
|
|
|
|
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2003-01-07 20:10:35 +01:00
|
|
|
%-define(MYNAME,"e.localhost").
|
2003-01-21 21:36:55 +01:00
|
|
|
-define(MYNAME, ejabberd_config:get_global_option(host)).
|
2003-01-28 20:45:13 +01:00
|
|
|
-define(S2STIMEOUT, 600000).
|
|
|
|
%-define(S2STIMEOUT, 6000).
|
2002-12-07 21:27:26 +01:00
|
|
|
|
2003-01-06 20:57:05 +01:00
|
|
|
-define(MSGS_DIR, "msgs").
|
2003-01-07 20:10:35 +01:00
|
|
|
-define(CONFIG_PATH, "ejabberd.cfg").
|
2003-01-14 18:38:03 +01:00
|
|
|
-define(ERROR_LOG_PATH, "error.log").
|
2003-01-06 20:57:05 +01:00
|
|
|
|