Add simple mod_doc/0 to prevent warnings; they won't be used anyway
This commit is contained in:
parent
664531f1ef
commit
a95e657a21
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_options/1, mod_opt_type/1]).
|
-export([start/2, stop/1, depends/2, mod_options/1, mod_opt_type/1, mod_doc/0]).
|
||||||
-export([cron_list/1, cron_del/1,
|
-export([cron_list/1, cron_del/1,
|
||||||
run_task/3,
|
run_task/3,
|
||||||
web_menu_host/3, web_page_host/3,
|
web_menu_host/3, web_page_host/3,
|
||||||
|
@ -57,6 +57,9 @@ mod_opt_type(tasks) ->
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[{tasks, []}].
|
[{tasks, []}].
|
||||||
|
|
||||||
|
mod_doc() ->
|
||||||
|
#{}.
|
||||||
|
|
||||||
%% ---------------------
|
%% ---------------------
|
||||||
%% Task management
|
%% Task management
|
||||||
%% ---------------------
|
%% ---------------------
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
-behavior(gen_mod).
|
-behavior(gen_mod).
|
||||||
|
|
||||||
%% gen_mod callbacks.
|
%% gen_mod callbacks.
|
||||||
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1]).
|
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1,
|
||||||
|
mod_doc/0]).
|
||||||
|
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
-export([register_user/2]).
|
-export([register_user/2]).
|
||||||
|
@ -72,6 +73,9 @@ mod_options(_Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[{mod_roster, hard}].
|
[{mod_roster, hard}].
|
||||||
|
|
||||||
|
mod_doc() ->
|
||||||
|
#{}.
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
-behavior(gen_mod).
|
-behavior(gen_mod).
|
||||||
|
|
||||||
%% gen_mod callbacks.
|
%% gen_mod callbacks.
|
||||||
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1]).
|
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1,
|
||||||
|
mod_doc/0]).
|
||||||
|
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
-export([register_user/2]).
|
-export([register_user/2]).
|
||||||
|
@ -66,6 +67,9 @@ mod_options(_Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[{mod_private, hard}].
|
[{mod_private, hard}].
|
||||||
|
|
||||||
|
mod_doc() ->
|
||||||
|
#{}.
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
|
@ -28,7 +28,8 @@
|
||||||
-behavior(gen_mod).
|
-behavior(gen_mod).
|
||||||
|
|
||||||
%% gen_mod callbacks.
|
%% gen_mod callbacks.
|
||||||
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1]).
|
-export([start/2, stop/1, reload/3, mod_opt_type/1, depends/2, mod_options/1,
|
||||||
|
mod_doc/0]).
|
||||||
|
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
-export([user_receive_packet/1, user_send_packet/1]).
|
-export([user_receive_packet/1, user_send_packet/1]).
|
||||||
|
@ -76,6 +77,9 @@ mod_options(_Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[{mod_pubsub, hard}].
|
[{mod_pubsub, hard}].
|
||||||
|
|
||||||
|
mod_doc() ->
|
||||||
|
#{}.
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% ejabberd_hooks callbacks.
|
%% ejabberd_hooks callbacks.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_options/1, filter_packet/1]).
|
-export([start/2, stop/1, depends/2, mod_options/1, filter_packet/1, mod_doc/0]).
|
||||||
|
|
||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
-include_lib("xmpp/include/xmpp.hrl").
|
-include_lib("xmpp/include/xmpp.hrl").
|
||||||
|
@ -103,3 +103,5 @@ depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
mod_options(_) -> [].
|
mod_options(_) -> [].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
-define(GLOBAL_HOOKS, [component_connected, component_disconnected]).
|
-define(GLOBAL_HOOKS, [component_connected, component_disconnected]).
|
||||||
|
|
||||||
-export([start/2, stop/1, mod_opt_type/1,
|
-export([start/2, stop/1, mod_opt_type/1,
|
||||||
depends/2, udp_loop_start/1, push/2]).
|
depends/2, mod_doc/0, udp_loop_start/1, push/2]).
|
||||||
|
|
||||||
-export([offline_message_hook/3,
|
-export([offline_message_hook/3,
|
||||||
sm_register_connection_hook/3, sm_remove_connection_hook/3,
|
sm_register_connection_hook/3, sm_remove_connection_hook/3,
|
||||||
|
@ -66,6 +66,8 @@ stop(Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
%% Hooks handlers
|
%% Hooks handlers
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
-export([init/1, handle_call/3, handle_cast/2,
|
-export([init/1, handle_call/3, handle_cast/2,
|
||||||
handle_info/2, terminate/2, code_change/3,
|
handle_info/2, terminate/2, code_change/3,
|
||||||
mod_opt_type/1, mod_options/1, depends/2]).
|
mod_opt_type/1, mod_options/1, depends/2, mod_doc/0]).
|
||||||
|
|
||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
-include_lib("xmpp/include/xmpp.hrl").
|
-include_lib("xmpp/include/xmpp.hrl").
|
||||||
|
@ -79,6 +79,8 @@ reload(Host, NewOpts, OldOpts) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
%% gen_server callbacks
|
%% gen_server callbacks
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
%% gen_mod callbacks
|
%% gen_mod callbacks
|
||||||
-export([start/2, stop/1, reload/3, mod_options/1, depends/2]).
|
-export([start/2, stop/1, reload/3, mod_options/1, depends/2, mod_doc/0]).
|
||||||
%% hooks
|
%% hooks
|
||||||
-export([filter_packet/1]).
|
-export([filter_packet/1]).
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@ mod_options(_) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
%%% Internal functions
|
%%% Internal functions
|
||||||
%%%===================================================================
|
%%%===================================================================
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_opt_type/1, mod_options/1]).
|
-export([start/2, stop/1, depends/2, mod_opt_type/1, mod_options/1, mod_doc/0]).
|
||||||
-export([init/1,
|
-export([init/1,
|
||||||
log_packet_send/1,
|
log_packet_send/1,
|
||||||
log_packet_receive/1]).
|
log_packet_receive/1]).
|
||||||
|
@ -288,3 +288,5 @@ mod_options(_Host) ->
|
||||||
[{host_config, []},
|
[{host_config, []},
|
||||||
{path, ?DEFAULT_PATH},
|
{path, ?DEFAULT_PATH},
|
||||||
{format, ?DEFAULT_FORMAT}].
|
{format, ?DEFAULT_FORMAT}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_options/1, mod_opt_type/1]).
|
-export([start/2, stop/1, depends/2, mod_options/1, mod_opt_type/1, mod_doc/0]).
|
||||||
-export([loop/3,
|
-export([loop/3,
|
||||||
reopen_log/1,
|
reopen_log/1,
|
||||||
failed_auth/3,
|
failed_auth/3,
|
||||||
|
@ -74,6 +74,8 @@ mod_opt_type(sessionlog) ->
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[{sessionlog, "/tmp/ejabberd_logsession_@HOST@.log"}].
|
[{sessionlog, "/tmp/ejabberd_logsession_@HOST@.log"}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
%%% REQUEST HANDLERS
|
%%% REQUEST HANDLERS
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
-export([start/2, init/6, stop/1,
|
-export([start/2, init/6, stop/1,
|
||||||
send_packet/1, receive_packet/1,
|
send_packet/1, receive_packet/1,
|
||||||
mod_opt_type/1, mod_options/1, depends/2]).
|
mod_opt_type/1, mod_options/1, depends/2, mod_doc/0]).
|
||||||
|
|
||||||
-include_lib("xmpp/include/xmpp.hrl").
|
-include_lib("xmpp/include/xmpp.hrl").
|
||||||
|
|
||||||
|
@ -71,6 +71,8 @@ init(Host, Logdir, RotateO, CheckRKP, ShowIP, FilterO) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%% -------------------
|
%% -------------------
|
||||||
%% Main
|
%% Main
|
||||||
%% -------------------
|
%% -------------------
|
||||||
|
|
|
@ -34,7 +34,8 @@
|
||||||
stop/1,
|
stop/1,
|
||||||
mod_opt_type/1,
|
mod_opt_type/1,
|
||||||
mod_options/1,
|
mod_options/1,
|
||||||
depends/2]).
|
depends/2,
|
||||||
|
mod_doc/0]).
|
||||||
|
|
||||||
%% gen_server callbacks.
|
%% gen_server callbacks.
|
||||||
-export([init/1,
|
-export([init/1,
|
||||||
|
@ -106,6 +107,8 @@ mod_options(_Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
%% gen_server callbacks.
|
%% gen_server callbacks.
|
||||||
%% -------------------------------------------------------------------
|
%% -------------------------------------------------------------------
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_options/1]).
|
-export([start/2, stop/1, depends/2, mod_options/1, mod_doc/0]).
|
||||||
|
|
||||||
-export([process/2]).
|
-export([process/2]).
|
||||||
|
|
||||||
|
@ -235,3 +235,5 @@ depends(_Host, _Opts) ->
|
||||||
|
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
depends/2,
|
depends/2,
|
||||||
mod_opt_type/1,
|
mod_opt_type/1,
|
||||||
mod_options/1,
|
mod_options/1,
|
||||||
|
mod_doc/0,
|
||||||
log_user_send/1,
|
log_user_send/1,
|
||||||
log_user_send/4,
|
log_user_send/4,
|
||||||
post_result/1]).
|
post_result/1]).
|
||||||
|
@ -61,6 +62,8 @@ mod_options(_Host) ->
|
||||||
{http_options, []},
|
{http_options, []},
|
||||||
{req_options, []}].
|
{req_options, []}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%% TODO: remove log_user_send/4 after 17.02 is released
|
%% TODO: remove log_user_send/4 after 17.02 is released
|
||||||
log_user_send(Packet, C2SState, From, To) ->
|
log_user_send(Packet, C2SState, From, To) ->
|
||||||
log_user_send({xmpp:set_from_to(Packet, From, To), C2SState}),
|
log_user_send({xmpp:set_from_to(Packet, From, To), C2SState}),
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
stop/1,
|
stop/1,
|
||||||
on_filter_packet/1,
|
on_filter_packet/1,
|
||||||
mod_opt_type/1,
|
mod_opt_type/1,
|
||||||
|
mod_doc/0,
|
||||||
depends/2,
|
depends/2,
|
||||||
reload/3,
|
reload/3,
|
||||||
mod_options/1
|
mod_options/1
|
||||||
|
@ -105,3 +106,4 @@ depends(_Host, _Opts) -> [].
|
||||||
reload(_Host, _NewOpts, _OldOpts) -> ok.
|
reload(_Host, _NewOpts, _OldOpts) -> ok.
|
||||||
mod_options(_) ->
|
mod_options(_) ->
|
||||||
[{blacklists, []},{charmaps, []}].
|
[{blacklists, []},{charmaps, []}].
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
depends/2,
|
depends/2,
|
||||||
split_line/1,
|
split_line/1,
|
||||||
process/2,
|
process/2,
|
||||||
mod_opt_type/1, mod_options/1]).
|
mod_opt_type/1, mod_options/1, mod_doc/0]).
|
||||||
|
|
||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
-include("ejabberd_http.hrl").
|
-include("ejabberd_http.hrl").
|
||||||
|
@ -187,3 +187,5 @@ mod_options(_Host) ->
|
||||||
{allowed_destinations, []},
|
{allowed_destinations, []},
|
||||||
{allowed_stanza_types, []},
|
{allowed_stanza_types, []},
|
||||||
{access_commands, []}].
|
{access_commands, []}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
init/1,
|
init/1,
|
||||||
stop/1,
|
stop/1,
|
||||||
depends/2,
|
depends/2,
|
||||||
|
mod_doc/0,
|
||||||
mod_opt_type/1,
|
mod_opt_type/1,
|
||||||
mod_options/1]).
|
mod_options/1]).
|
||||||
%% Hooks:
|
%% Hooks:
|
||||||
|
@ -119,6 +120,8 @@ mod_opt_type(filename) ->
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[{filename, ?DEFAULT_FILENAME}].
|
[{filename, ?DEFAULT_FILENAME}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%% ---
|
%% ---
|
||||||
%% Internal functions
|
%% Internal functions
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_options/1]).
|
-export([start/2, stop/1, depends/2, mod_options/1, mod_doc/0]).
|
||||||
-export([execute_system/1, execute_erlang/1]).
|
-export([execute_system/1, execute_erlang/1]).
|
||||||
-export([web_menu_node/3, web_page_node/5]).
|
-export([web_menu_node/3, web_page_node/5]).
|
||||||
|
|
||||||
|
@ -47,6 +47,8 @@ depends(_Host, _Opts) ->
|
||||||
mod_options(_Host) ->
|
mod_options(_Host) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%-------------------
|
%%-------------------
|
||||||
%% Commands
|
%% Commands
|
||||||
%%-------------------
|
%%-------------------
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
stop/1,
|
stop/1,
|
||||||
reload/3,
|
reload/3,
|
||||||
depends/2,
|
depends/2,
|
||||||
|
mod_doc/0,
|
||||||
mod_opt_type/1,
|
mod_opt_type/1,
|
||||||
mod_options/1]).
|
mod_options/1]).
|
||||||
|
|
||||||
|
@ -130,6 +131,8 @@ mod_options(_Host) ->
|
||||||
{access_spam, none},
|
{access_spam, none},
|
||||||
{cache_size, 10000}].
|
{cache_size, 10000}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% gen_server callbacks.
|
%% gen_server callbacks.
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
-behaviour(gen_mod).
|
-behaviour(gen_mod).
|
||||||
|
|
||||||
-export([start/2, stop/1, depends/2, mod_opt_type/1, mod_options/1]).
|
-export([start/2, stop/1, depends/2, mod_opt_type/1, mod_options/1, mod_doc/0]).
|
||||||
-export([loop/1, get_statistic/2,
|
-export([loop/1, get_statistic/2,
|
||||||
pre_uninstall/0,
|
pre_uninstall/0,
|
||||||
received_response/3,
|
received_response/3,
|
||||||
|
@ -98,6 +98,8 @@ mod_options(_Host) ->
|
||||||
[{hooks, false},
|
[{hooks, false},
|
||||||
{sessionlog, "/tmp/ejabberd_logsession_@HOST@.log"}].
|
{sessionlog, "/tmp/ejabberd_logsession_@HOST@.log"}].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%%==================================
|
%%%==================================
|
||||||
%%%% Stats Server
|
%%%% Stats Server
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
%% gen_server callbacks
|
%% gen_server callbacks
|
||||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
||||||
terminate/2, code_change/3,
|
terminate/2, code_change/3,
|
||||||
mod_opt_type/1, mod_options/1, depends/2]).
|
mod_opt_type/1, mod_options/1, depends/2, mod_doc/0]).
|
||||||
|
|
||||||
%% API
|
%% API
|
||||||
-export([start_link/0]).
|
-export([start_link/0]).
|
||||||
|
@ -98,6 +98,8 @@ mod_options(Host) ->
|
||||||
depends(_Host, _Opts) ->
|
depends(_Host, _Opts) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
mod_doc() -> #{}.
|
||||||
|
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
%% gen_server callbacks
|
%% gen_server callbacks
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
|
|
Loading…
Reference in New Issue