fixeria has uploaded this change for review.
osmo_s1gw: add set_env/2
Change-Id: I6c88d004ad16d9bed5021f96a1cef2904c0a246a
---
M src/osmo_s1gw.erl
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/80/41280/1
diff --git a/src/osmo_s1gw.erl b/src/osmo_s1gw.erl
index e90d927..4444fe0 100644
--- a/src/osmo_s1gw.erl
+++ b/src/osmo_s1gw.erl
@@ -35,6 +35,7 @@
-module(osmo_s1gw).
-export([get_env/2,
+ set_env/2,
get_priv/1,
main/1]).
@@ -53,6 +54,13 @@
application:get_env(?ENV_APP_NAME, Param, Default).
+-spec set_env(Param, Value) -> ok
+ when Param :: atom(),
+ Value :: term().
+set_env(Param, Value) ->
+ application:set_env(?ENV_APP_NAME, Param, Value).
+
+
-spec get_priv(Name) -> Path
when Name :: file:filename_all(),
Path :: file:filename_all().
To view, visit change 41280. To unsubscribe, or for help writing mail filters, visit settings.