25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Update opt files with "make options"

This commit is contained in:
Badlop 2020-08-21 17:34:46 +02:00
parent e7575ab63f
commit b9926c6796
2 changed files with 18 additions and 18 deletions

View File

@ -40,7 +40,7 @@ routes(Opts) when is_map(Opts) ->
routes(Host) -> routes(Host) ->
gen_mod:get_module_opt(Host, mod_sip, routes). gen_mod:get_module_opt(Host, mod_sip, routes).
-spec via(gen_mod:opts() | global | binary()) -> [{'tcp' | 'tls' | 'udp',{binary(),1..65535 | 'undefined'}}]. -spec via(gen_mod:opts() | global | binary()) -> [{'tcp' | 'tls' | 'udp',{binary(),1..65535}}].
via(Opts) when is_map(Opts) -> via(Opts) when is_map(Opts) ->
gen_mod:get_opt(via, Opts); gen_mod:get_opt(via, Opts);
via(Host) -> via(Host) ->

View File

@ -25,101 +25,101 @@
ldap_backups(Opts) when is_map(Opts) -> ldap_backups(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_backups, Opts); gen_mod:get_opt(ldap_backups, Opts);
ldap_backups(Host) -> ldap_backups(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_backups). gen_mod:get_module_opt(Host, mod_vcard, ldap_backups).
-spec ldap_base(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_base(gen_mod:opts() | global | binary()) -> binary().
ldap_base(Opts) when is_map(Opts) -> ldap_base(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_base, Opts); gen_mod:get_opt(ldap_base, Opts);
ldap_base(Host) -> ldap_base(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_base). gen_mod:get_module_opt(Host, mod_vcard, ldap_base).
-spec ldap_deref_aliases(gen_mod:opts() | global | binary()) -> 'always' | 'finding' | 'never' | 'searching'. -spec ldap_deref_aliases(gen_mod:opts() | global | binary()) -> 'always' | 'finding' | 'never' | 'searching'.
ldap_deref_aliases(Opts) when is_map(Opts) -> ldap_deref_aliases(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_deref_aliases, Opts); gen_mod:get_opt(ldap_deref_aliases, Opts);
ldap_deref_aliases(Host) -> ldap_deref_aliases(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_deref_aliases). gen_mod:get_module_opt(Host, mod_vcard, ldap_deref_aliases).
-spec ldap_encrypt(gen_mod:opts() | global | binary()) -> 'none' | 'starttls' | 'tls'. -spec ldap_encrypt(gen_mod:opts() | global | binary()) -> 'none' | 'starttls' | 'tls'.
ldap_encrypt(Opts) when is_map(Opts) -> ldap_encrypt(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_encrypt, Opts); gen_mod:get_opt(ldap_encrypt, Opts);
ldap_encrypt(Host) -> ldap_encrypt(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_encrypt). gen_mod:get_module_opt(Host, mod_vcard, ldap_encrypt).
-spec ldap_filter(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_filter(gen_mod:opts() | global | binary()) -> binary().
ldap_filter(Opts) when is_map(Opts) -> ldap_filter(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_filter, Opts); gen_mod:get_opt(ldap_filter, Opts);
ldap_filter(Host) -> ldap_filter(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_filter). gen_mod:get_module_opt(Host, mod_vcard, ldap_filter).
-spec ldap_password(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_password(gen_mod:opts() | global | binary()) -> binary().
ldap_password(Opts) when is_map(Opts) -> ldap_password(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_password, Opts); gen_mod:get_opt(ldap_password, Opts);
ldap_password(Host) -> ldap_password(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_password). gen_mod:get_module_opt(Host, mod_vcard, ldap_password).
-spec ldap_port(gen_mod:opts() | global | binary()) -> 1..1114111. -spec ldap_port(gen_mod:opts() | global | binary()) -> 1..1114111.
ldap_port(Opts) when is_map(Opts) -> ldap_port(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_port, Opts); gen_mod:get_opt(ldap_port, Opts);
ldap_port(Host) -> ldap_port(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_port). gen_mod:get_module_opt(Host, mod_vcard, ldap_port).
-spec ldap_rootdn(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_rootdn(gen_mod:opts() | global | binary()) -> binary().
ldap_rootdn(Opts) when is_map(Opts) -> ldap_rootdn(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_rootdn, Opts); gen_mod:get_opt(ldap_rootdn, Opts);
ldap_rootdn(Host) -> ldap_rootdn(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_rootdn). gen_mod:get_module_opt(Host, mod_vcard, ldap_rootdn).
-spec ldap_search_fields(gen_mod:opts() | global | binary()) -> [{binary(),binary()}]. -spec ldap_search_fields(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_search_fields(Opts) when is_map(Opts) -> ldap_search_fields(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_search_fields, Opts); gen_mod:get_opt(ldap_search_fields, Opts);
ldap_search_fields(Host) -> ldap_search_fields(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_search_fields). gen_mod:get_module_opt(Host, mod_vcard, ldap_search_fields).
-spec ldap_search_reported(gen_mod:opts() | global | binary()) -> [{binary(),binary()}]. -spec ldap_search_reported(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_search_reported(Opts) when is_map(Opts) -> ldap_search_reported(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_search_reported, Opts); gen_mod:get_opt(ldap_search_reported, Opts);
ldap_search_reported(Host) -> ldap_search_reported(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_search_reported). gen_mod:get_module_opt(Host, mod_vcard, ldap_search_reported).
-spec ldap_servers(gen_mod:opts() | global | binary()) -> [binary()]. -spec ldap_servers(gen_mod:opts() | global | binary()) -> [binary()].
ldap_servers(Opts) when is_map(Opts) -> ldap_servers(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_servers, Opts); gen_mod:get_opt(ldap_servers, Opts);
ldap_servers(Host) -> ldap_servers(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_servers). gen_mod:get_module_opt(Host, mod_vcard, ldap_servers).
-spec ldap_tls_cacertfile(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_tls_cacertfile(gen_mod:opts() | global | binary()) -> binary().
ldap_tls_cacertfile(Opts) when is_map(Opts) -> ldap_tls_cacertfile(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_cacertfile, Opts); gen_mod:get_opt(ldap_tls_cacertfile, Opts);
ldap_tls_cacertfile(Host) -> ldap_tls_cacertfile(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_tls_cacertfile). gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_cacertfile).
-spec ldap_tls_certfile(gen_mod:opts() | global | binary()) -> binary(). -spec ldap_tls_certfile(gen_mod:opts() | global | binary()) -> binary().
ldap_tls_certfile(Opts) when is_map(Opts) -> ldap_tls_certfile(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_certfile, Opts); gen_mod:get_opt(ldap_tls_certfile, Opts);
ldap_tls_certfile(Host) -> ldap_tls_certfile(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_tls_certfile). gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_certfile).
-spec ldap_tls_depth(gen_mod:opts() | global | binary()) -> non_neg_integer(). -spec ldap_tls_depth(gen_mod:opts() | global | binary()) -> non_neg_integer().
ldap_tls_depth(Opts) when is_map(Opts) -> ldap_tls_depth(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_depth, Opts); gen_mod:get_opt(ldap_tls_depth, Opts);
ldap_tls_depth(Host) -> ldap_tls_depth(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_tls_depth). gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_depth).
-spec ldap_tls_verify(gen_mod:opts() | global | binary()) -> 'false' | 'hard' | 'soft'. -spec ldap_tls_verify(gen_mod:opts() | global | binary()) -> 'false' | 'hard' | 'soft'.
ldap_tls_verify(Opts) when is_map(Opts) -> ldap_tls_verify(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_tls_verify, Opts); gen_mod:get_opt(ldap_tls_verify, Opts);
ldap_tls_verify(Host) -> ldap_tls_verify(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_tls_verify). gen_mod:get_module_opt(Host, mod_vcard, ldap_tls_verify).
-spec ldap_uids(gen_mod:opts() | global | binary()) -> [{binary(),binary()}]. -spec ldap_uids(gen_mod:opts() | global | binary()) -> [{binary(),binary()}].
ldap_uids(Opts) when is_map(Opts) -> ldap_uids(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_uids, Opts); gen_mod:get_opt(ldap_uids, Opts);
ldap_uids(Host) -> ldap_uids(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_uids). gen_mod:get_module_opt(Host, mod_vcard, ldap_uids).
-spec ldap_vcard_map(gen_mod:opts() | global | binary()) -> [{binary(),[{binary(),[binary()]}]}]. -spec ldap_vcard_map(gen_mod:opts() | global | binary()) -> [{binary(),[{binary(),[binary()]}]}].
ldap_vcard_map(Opts) when is_map(Opts) -> ldap_vcard_map(Opts) when is_map(Opts) ->
gen_mod:get_opt(ldap_vcard_map, Opts); gen_mod:get_opt(ldap_vcard_map, Opts);
ldap_vcard_map(Host) -> ldap_vcard_map(Host) ->
gen_mod:get_module_opt(Host, mod_vcard_ldap, ldap_vcard_map). gen_mod:get_module_opt(Host, mod_vcard, ldap_vcard_map).