Skip to content

Commit

Permalink
Added shortcut start.
Browse files Browse the repository at this point in the history
  • Loading branch information
malotte committed May 6, 2013
1 parent c247ae5 commit d0d98df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/gpio_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
-include("gpio.hrl").

%% Application callbacks
-export([start/2,
-export([start/2,
stop/1]).

%% Shortcut API
-export([start/0,
start/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================
Expand Down Expand Up @@ -56,3 +60,10 @@ start(_StartType, _StartArgs) ->

stop(_State) ->
ok.

%% @private
start() ->
start(normal, []).

start(Opts) ->
gpio_sup:start_link(Opts).

0 comments on commit d0d98df

Please sign in to comment.