]> granicus.if.org Git - ejabberd/commitdiff
Add mod_opt_type/1 callback to gen_mod behaviour
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 1 May 2016 20:09:40 +0000 (22:09 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sun, 1 May 2016 20:09:40 +0000 (22:09 +0200)
src/gen_mod.erl

index 8a432b4fcc41ec1d2cdda95839d75b8ecca1f2b8..f96397192eecd0830675bfe6adc3727ad8f63085 100644 (file)
@@ -52,6 +52,7 @@
 
 -callback start(binary(), opts()) -> any().
 -callback stop(binary()) -> any().
+-callback mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
 
 -export_type([opts/0]).
 -export_type([db_type/0]).