summaryrefslogtreecommitdiff
path: root/test/rebar_edoc_SUITE_data/foo/apps/bar1/src/bar1_sup.erl
blob: f9d66706c3d8daac883ab2f6682d5b8c5feb48b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%%%-------------------------------------------------------------------
%% @doc bar1 top level supervisor.
%% @end
%%%-------------------------------------------------------------------

-module(bar1_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

-define(SERVER, ?MODULE).

%%====================================================================
%% API functions
%%====================================================================

start_link() ->
    supervisor:start_link({local, ?SERVER}, ?MODULE, []).

%%====================================================================
%% Supervisor callbacks
%%====================================================================

%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init([]) ->
    {ok, { {one_for_all, 0, 1}, []} }.

%%====================================================================
%% Internal functions
%%====================================================================