Commits

Alvaro Videla committed fd28160

new utils module

Comments (0)

Files changed (1)

src/trakt_utils.erl

+%% @author Alvaro Videla <alvaro@thenetcircle.com>
+%% @copyright 2009 Alvaro Videla.
+%% See LICENSE for copyright details.
+
+-module(trakt_utils).
+
+-export([add_handler/1, add_handler/2]).
+
+-include("trakt.hrl").
+
+add_handler(Name) ->
+  add_handler(Name, []).
+add_handler(Name, Options) ->
+  gen_event:add_handler(?EVT_MANAGER, Name, Options).