aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Khramtsov <xramtsov@gmail.com>2017-02-17 20:40:04 +0400
committerGitHub <noreply@github.com>2017-02-17 20:40:04 +0400
commitb2de1d7438fa6e1996e162077af251cd0355ef5d (patch)
treeffeab9e1e49f1848a8a0e1f64eb6e2abd552d97b
parentFix compilation when included as Elixir dependency (#1526) (diff)
parentMark local/global config functions as deprecated (diff)
Merge pull request #1553 from lemenkov/config_functions_deprecation
Mark local/global config functions as deprecated
-rw-r--r--src/ejabberd_config.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ejabberd_config.erl b/src/ejabberd_config.erl
index e15da3319..775a860bc 100644
--- a/src/ejabberd_config.erl
+++ b/src/ejabberd_config.erl
@@ -27,9 +27,6 @@
-author('alexey@process-one.net').
-export([start/0, load_file/1, reload_file/0, read_file/1,
- add_global_option/2, add_local_option/2,
- get_global_option/2, get_local_option/2,
- get_global_option/3, get_local_option/3,
get_option/2, get_option/3, add_option/2, has_option/1,
get_vh_by_auth_method/1, is_file_readable/1,
get_version/0, get_myhosts/0, get_mylang/0,
@@ -44,6 +41,15 @@
-export([start/2]).
+%% The following functions are deprecated.
+-export([add_global_option/2, add_local_option/2,
+ get_global_option/2, get_local_option/2,
+ get_global_option/3, get_local_option/3]).
+
+-deprecated([{add_global_option, 2}, {add_local_option, 2},
+ {get_global_option, 2}, {get_local_option, 2},
+ {get_global_option, 3}, {get_local_option, 3}]).
+
-include("ejabberd.hrl").
-include("logger.hrl").
-include("ejabberd_config.hrl").