aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-03-26 21:45:39 +0100
committerHans Bolinder <[email protected]>2014-03-30 10:19:59 +0200
commit650e38a0ab73170d3fce3d66f3b1fd548cddfc4b (patch)
tree6e1eb3a682bd8dd9cfc602b703352d0144977c78 /lib/kernel
parent4503158956b9f7357551c349f3e1095acdfb80f8 (diff)
downloadotp-650e38a0ab73170d3fce3d66f3b1fd548cddfc4b.tar.gz
otp-650e38a0ab73170d3fce3d66f3b1fd548cddfc4b.tar.bz2
otp-650e38a0ab73170d3fce3d66f3b1fd548cddfc4b.zip
Export type application:start_type()
Also use this type in the start/2 callback spec.
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/application.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/src/application.erl b/lib/kernel/src/application.erl
index 76a80553b0..c4bef5188a 100644
--- a/lib/kernel/src/application.erl
+++ b/lib/kernel/src/application.erl
@@ -30,6 +30,8 @@
-export([get_application/0, get_application/1, info/0]).
-export([start_type/0]).
+-export_type([start_type/0]).
+
%%%-----------------------------------------------------------------
-type start_type() :: 'normal'
@@ -58,8 +60,7 @@
%%------------------------------------------------------------------
--callback start(StartType :: normal | {takeover, node()} | {failover, node()},
- StartArgs :: term()) ->
+-callback start(StartType :: start_type(), StartArgs :: term()) ->
{'ok', pid()} | {'ok', pid(), State :: term()} | {'error', Reason :: term()}.
-callback stop(State :: term()) ->