aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc
diff options
context:
space:
mode:
authorserge <[email protected]>2013-01-10 09:07:38 -0500
committerSerge Aleynikov <[email protected]>2013-01-14 13:24:41 -0500
commitd1d834820ddaba4fa31e6ab6d07a96ac7cc6d999 (patch)
tree9dd256e5390bc9845cfd1ccb094845a904bbb911 /lib/kernel/doc
parent9f461fbaf0be7aba7c0b8b89be1f0b6f1141b7a5 (diff)
downloadotp-d1d834820ddaba4fa31e6ab6d07a96ac7cc6d999.tar.gz
otp-d1d834820ddaba4fa31e6ab6d07a96ac7cc6d999.tar.bz2
otp-d1d834820ddaba4fa31e6ab6d07a96ac7cc6d999.zip
Add application:get_key/3
The new function provides a default value for a configuration parameter.
Diffstat (limited to 'lib/kernel/doc')
-rw-r--r--lib/kernel/doc/src/application.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/application.xml b/lib/kernel/doc/src/application.xml
index 51a3311ec2..3513e2b592 100644
--- a/lib/kernel/doc/src/application.xml
+++ b/lib/kernel/doc/src/application.xml
@@ -108,12 +108,14 @@
<func>
<name name="get_env" arity="1"/>
<name name="get_env" arity="2"/>
+ <name name="get_env" arity="3"/>
<fsummary>Get the value of a configuration parameter</fsummary>
<desc>
<p>Returns the value of the configuration parameter <c><anno>Par</anno></c>
for <c><anno>Application</anno></c>. If the application argument is
omitted, it defaults to the application of the calling
- process.</p>
+ process. If <c><anno>Def</anno></c> value is provided, it is returned
+ when no configuration parameter <c><anno>Par</anno></c> is defined.</p>
<p>If the specified application is not loaded, or
the configuration parameter does not exist, or if the process
executing the call does not belong to any application,