Skip to content

Commit

Permalink
Turned the registry into an OTP app
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e6562 committed Jul 12, 2009
1 parent 61c53cc commit 3b51b0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ERLC_OPTS=-I $(INCLUDE_DIR) -o $(EBIN_DIR) -Wall +debug_info # +native -v
DIST_DIR=dist
SIGNING_KEY_ID=F8D7D525
VERSION=1.2.0
PACKAGE_NAME=erlang-rfc4627
PACKAGE_NAME=rfc4627_jsonrpc
EZ_NAME=$(PACKAGE_NAME).ez

ifeq ($(shell uname -s),Darwin)
Expand Down
13 changes: 13 additions & 0 deletions src/rfc4627_jsonrpc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
-include("rfc4627.hrl").
-include("rfc4627_jsonrpc.hrl").

-behaviour(application).
-export([start/2,stop/1]).

-export([start/0, start_link/0]).

-export([lookup_service/1, register_service/2]).
Expand All @@ -227,6 +230,16 @@

-define(SERVICE, ?MODULE).

%% @spec start(_Type, _StartArgs) -> ServerRet
%% @doc application start callback for mod_http.
start(_Type, _StartArgs) ->
start_link().

%% @spec stop(_State) -> ServerRet
%% @doc application stop callback for mod_http.
stop(_State) ->
ok.

%% @spec () -> {ok, pid()} | {error, {already_started, pid()}}
%% @doc Starts the registry process.
start() ->
Expand Down

0 comments on commit 3b51b0c

Please sign in to comment.