commit | 790f36434725fd966f7f87fb656c14a8296b3452 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Thu Feb 03 17:44:50 2011 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Thu Feb 03 17:44:50 2011 +0100 |
tree | 0f7b143d08d519afc84f8271377417f284cf3f53 | |
parent | 918c1f202924e48b346033412dccdbbfe35ef564 [diff] [blame] |
introduce erlang 'application' and corresponding config file this replaces the use if '-define()' for stuff like NAT parameters
diff --git a/src/mgw_nat_app.erl b/src/mgw_nat_app.erl new file mode 100644 index 0000000..6b43a94 --- /dev/null +++ b/src/mgw_nat_app.erl
@@ -0,0 +1,11 @@ +-module(mgw_nat_app). +-behavior(application). +-export([start/2, stop/1]). + +start(_Type, _Args) -> + Sup = mgw_nat_sup:start_link(), + io:format("Sup ~p~n", [Sup]), + Sup. + +stop(_State) -> + ok.