summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-05-09 00:10:39 +0200
committerHarald Welte <laforge@gnumonks.org>2012-05-09 00:10:39 +0200
commitdd35d2c8fbb9572e90791e58194e2feae7fa5334 (patch)
treec845dca450a986e35362b52751756cd0ccde92d9
parent312a1eb1aeed8a2ab7ec202e74a3fa4d5f273228 (diff)
xua_asp_fsm: Add start_link/6
-rw-r--r--src/xua_asp_fsm.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xua_asp_fsm.erl b/src/xua_asp_fsm.erl
index f15fe24..56bd7cf 100644
--- a/src/xua_asp_fsm.erl
+++ b/src/xua_asp_fsm.erl
@@ -49,7 +49,7 @@
-export([send_sctp_to_peer/2, send_prim_to_user/2]).
% global exports
--export([get_state/1]).
+-export([get_state/1, start_link/6]).
-export([behaviour_info/1]).
@@ -70,6 +70,9 @@ behaviour_info(callbacks) ->
sctp_pid
}).
+start_link(AsPid, Module, ModuleArgs, UserFun, UserArgs, SctpPid) ->
+ gen_fsm:start_link(?MODULE, [AsPid, Module, ModuleArgs, UserFun, UserArgs, SctpPid], [{debug, [trace]}]).
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% gen_fsm callbacks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%