summaryrefslogtreecommitdiff
path: root/src/pbx_pdu.erl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-11 18:16:31 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-11 18:16:31 +0100
commitbd447ae4c97c7df7eb60a8a8c5ffbfecc89c5742 (patch)
tree1625dacd35c8279623314bca7d3122a743eeaa0c /src/pbx_pdu.erl
parent0ebc8a64a51ff4255c931c23039e7485cbaee08a (diff)
WIP
Diffstat (limited to 'src/pbx_pdu.erl')
-rw-r--r--src/pbx_pdu.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pbx_pdu.erl b/src/pbx_pdu.erl
index 64a03ea..21350f9 100644
--- a/src/pbx_pdu.erl
+++ b/src/pbx_pdu.erl
@@ -1,8 +1,7 @@
-module(pbx_pdu).
--export([decode/1]).
--export([start_link/0, add_handler/2]).
--export([call/2]).
+-export([start_link/0, add_handler/2, delete_handler/2]).
+-export([decode/1, call/2]).
-include("Remote-Operations-Generic-ROS-PDUs.hrl").
-include("ACSE-1.hrl").
@@ -22,5 +21,8 @@ start_link() ->
add_handler(Handler, Args) ->
gen_event:add_handler(?MODULE, Handler, Args).
+delete_handler(Handler, Args) ->
+ gen_event:delete_handler(?MODULE, Handler, Args).
+
call(Handler, Args) ->
gen_event:call(?MODULE, Handler, Args).