summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-08-15 10:38:38 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-08-15 10:38:38 +0200
commit2ff893cd854733de0c9e82edc9e57f55c3d9ce7a (patch)
treed9f1a45d5fca7e707f37676633ecbabb0b188d2b
parent9c9b9b276a35dcc6dce8e6a19e7afc01eef451a7 (diff)
downloadlvm2-2ff893cd854733de0c9e82edc9e57f55c3d9ce7a.tar.gz
conf: add comment about cfg_runtime
-rw-r--r--lib/config/config_settings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/config/config_settings.h b/lib/config/config_settings.h
index 1084224fc..fa6a01e7c 100644
--- a/lib/config/config_settings.h
+++ b/lib/config/config_settings.h
@@ -23,6 +23,11 @@
* - define a configuration array of one or more types:
* cfg_array(id, name, parent, flags, types, default_value, since_version, unconfigured_default_value, deprecated_since_version, deprecation_comment, comment)
*
+ * - define a configuration setting where the default value is evaluated in runtime
+ * cfg_runtime(id, name, parent, flags, type, since_version, deprecated_since_version, deprecation_comment, comment)
+ * (for each cfg_runtime, you need to define 'get_default_<name>(struct cmd_context *cmd, struct profile *profile)' function
+ * to get the default value in runtime - usually, these functions are placed in config.[ch] file)
+ *
*
* If default value can't be assigned statically because it depends on some
* run-time checks or if it depends on other settings already defined,