aboutsummaryrefslogtreecommitdiff
path: root/src/mod_host_meta_opt.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-03-28 15:44:50 +0200
committerBadlop <badlop@process-one.net>2022-04-01 12:04:01 +0200
commit8065ec831eb5e7681d749c2e3265da68e10b4d55 (patch)
tree66aa82a71acb316f3c0d44107bd77432122d2f50 /src/mod_host_meta_opt.erl
parentCheck results when test with any OTP is not skipped (diff)
New mod_host_meta to serve host-meta files, see XEP-0156
Diffstat (limited to 'src/mod_host_meta_opt.erl')
-rw-r--r--src/mod_host_meta_opt.erl20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mod_host_meta_opt.erl b/src/mod_host_meta_opt.erl
new file mode 100644
index 000000000..965e95cf8
--- /dev/null
+++ b/src/mod_host_meta_opt.erl
@@ -0,0 +1,20 @@
+%% Generated automatically
+%% DO NOT EDIT: run `make options` instead
+
+-module(mod_host_meta_opt).
+
+-export([bosh_service_url/1]).
+-export([websocket_url/1]).
+
+-spec bosh_service_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
+bosh_service_url(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(bosh_service_url, Opts);
+bosh_service_url(Host) ->
+ gen_mod:get_module_opt(Host, mod_host_meta, bosh_service_url).
+
+-spec websocket_url(gen_mod:opts() | global | binary()) -> 'undefined' | binary().
+websocket_url(Opts) when is_map(Opts) ->
+ gen_mod:get_opt(websocket_url, Opts);
+websocket_url(Host) ->
+ gen_mod:get_module_opt(Host, mod_host_meta, websocket_url).
+