* src/ejabberd_config.erl: Refactoring: Move internal data structure to an include file.

* src/ejabberd_config.hrl: Likewise.

SVN Revision: 969
This commit is contained in:
Mickaël Rémond 2007-11-09 10:18:38 +00:00
parent d6967f2745
commit 76f7e643e3
3 changed files with 22 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2007-11-05 Mickael Remond <mremond@process-one.net>
* src/ejabberd_config.erl: Refactoring: Move internal
data structure to an include file.
* src/ejabberd_config.hrl: Likewise.
2007-11-03 Mickael Remond <mremond@process-one.net>
* src/ejabberd_auth.erl: Better count management and batch users

View File

@ -13,14 +13,7 @@
get_global_option/1, get_local_option/1]).
-include("ejabberd.hrl").
-record(config, {key, value}).
-record(local_config, {key, value}).
-record(state, {opts = [],
hosts = [],
override_local = false,
override_global = false,
override_acls = false}).
-include("ejabberd_config.hrl").
start() ->
mnesia:create_table(config,

15
src/ejabberd_config.hrl Normal file
View File

@ -0,0 +1,15 @@
%%%----------------------------------------------------------------------
%%% File : ejabberd_config.hrl
%%% Author : Mickael Remond <mickael.remond@process-one.net>
%%% Purpose : ejabberd configuration internal data structures.
%%% Created : 5 Nov 2007 by Mickael Remond <mickael.remond@process-one.net>
%%% Id : $Id: $
%%%----------------------------------------------------------------------
-record(config, {key, value}).
-record(local_config, {key, value}).
-record(state, {opts = [],
hosts = [],
override_local = false,
override_global = false,
override_acls = false}).