diff options
author | Hans Bolinder <[email protected]> | 2014-03-30 10:20:54 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-03-30 10:20:54 +0200 |
commit | a99f94e7d940e8e9e881055a0a357a9ef8ac6d6e (patch) | |
tree | 7b71ae1afa4f98d17b19459de39c9d36d6cb691c /lib/kernel/src/application.erl | |
parent | 4503158956b9f7357551c349f3e1095acdfb80f8 (diff) | |
parent | f9a5947ed8daf3b673ed94089a03553f87c56743 (diff) | |
download | otp-a99f94e7d940e8e9e881055a0a357a9ef8ac6d6e.tar.gz otp-a99f94e7d940e8e9e881055a0a357a9ef8ac6d6e.tar.bz2 otp-a99f94e7d940e8e9e881055a0a357a9ef8ac6d6e.zip |
Merge branch 'essen/kernel/export_app_start_type'
* essen/kernel/export_app_start_type:
Fix reference to start_type() i application(3)
Export type application:start_type()
Diffstat (limited to 'lib/kernel/src/application.erl')
-rw-r--r-- | lib/kernel/src/application.erl | 5 |
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()) -> |