mod_s2s_log: Add mod_options/1 callback

This commit is contained in:
Holger Weiss 2018-04-07 21:47:33 +02:00
parent fa5c601325
commit cd54f70943
1 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,8 @@
init/1, init/1,
stop/1, stop/1,
depends/2, depends/2,
mod_opt_type/1]). mod_opt_type/1,
mod_options/1]).
%% Hooks: %% Hooks:
-export([reopen_log/0, -export([reopen_log/0,
s2s_out_auth/2, s2s_out_auth/2,
@ -114,9 +115,10 @@ depends(_, _) ->
[]. [].
mod_opt_type(filename) -> mod_opt_type(filename) ->
fun iolist_to_binary/1; fun iolist_to_binary/1.
mod_opt_type(_) ->
[filename]. mod_options(_Host) ->
[{filename, ?DEFAULT_FILENAME}].
%% --- %% ---
%% Internal functions %% Internal functions