summaryrefslogtreecommitdiff
path: root/src/gen_mod.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-05-01 22:09:40 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-05-01 22:09:40 +0200
commitd54f2115145957a8a486f15b396eb84d24846e86 (patch)
treec6ae335ccef2c97864dc1b223309262dbf233212 /src/gen_mod.erl
parentCope with modules that don't export mod_opt_type/1 (diff)
Add mod_opt_type/1 callback to gen_mod behaviour
Diffstat (limited to 'src/gen_mod.erl')
-rw-r--r--src/gen_mod.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl
index 8a432b4f..f9639719 100644
--- a/src/gen_mod.erl
+++ b/src/gen_mod.erl
@@ -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]).