diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-05 03:34:02 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-05 03:34:02 +0200 |
commit | 3d451b3dc69d91b04c1153f63436b63940287b13 (patch) | |
tree | 93c647b492621c39225b25eb185962de60353f30 /src/core/ephraim_account.erl | |
parent | 2444ac841fad00133f231e9667ab427c4ce4d39e (diff) | |
download | ephraim-3d451b3dc69d91b04c1153f63436b63940287b13.tar ephraim-3d451b3dc69d91b04c1153f63436b63940287b13.zip |
Sending work now, too
Diffstat (limited to 'src/core/ephraim_account.erl')
-rw-r--r-- | src/core/ephraim_account.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ephraim_account.erl b/src/core/ephraim_account.erl index 8024d68..2e95f88 100644 --- a/src/core/ephraim_account.erl +++ b/src/core/ephraim_account.erl @@ -1,18 +1,18 @@ -module(ephraim_account). -behaviour(supervisor). --export([start_link/0]). +-export([start_link/1]). -export([init/1]). -start_link() -> +start_link(Account) -> {ok, Pid} = supervisor:start_link(?MODULE, []), {ok, EventManager} = supervisor:start_child(Pid, {event_man, {gen_event, start_link, []}, permanent, 1000, worker, [gen_event]}), - ephraim_account_event_proxy:start(EventManager), - - {ok, _} = supervisor:start_child(Pid, {conv_man, {ephraim_conv_man, start_link, [EventManager]}, permanent, 1000, supervisor, [ephraim_conv_man]}), + ephraim_event_proxy:start(Account, EventManager), + ephraim_account_event_proxy:start(Account, EventManager), {ok, Connection} = supervisor:start_child(Pid, {connection, {ephraim_conn, start_link, [EventManager]}, permanent, 10000, worker, [ephraim_conn]}), - {ok, _} = supervisor:start_child(Pid, {roster, {ephraim_roster, start_link, [EventManager, Connection]}, permanent, 1000, worker, [ephraim_roster]}), + {ok, Roster} = supervisor:start_child(Pid, {roster, {ephraim_roster, start_link, [EventManager, Connection]}, permanent, 1000, worker, [ephraim_roster]}), + {ok, _} = supervisor:start_child(Pid, {conv_man, {ephraim_conv_man, start_link, [EventManager, Connection, Roster]}, permanent, 1000, supervisor, [ephraim_conv_man]}), {ok, Pid}. init(_Args) -> |