Top |
OsinfoInstallConfigParamOsinfoInstallConfigParam — OS install configuration parameters (and its policies) |
gchar * | name | Read / Write / Construct Only |
OsinfoInstallConfigParamPolicy | policy | Read |
OsinfoDatamap * | value-map | Read / Write |
GEnum ╰── OsinfoInstallConfigParamPolicy GObject ╰── OsinfoEntity ╰── OsinfoInstallConfigParam
OsinfoInstallConfigParam is an entity for describing all parameters that can be set in an automated installation. It is used to help applications to generate an automated installation script. The actual parameter values for an OsinfoInstallScript must be set using an OsinfoInstallConfig object.
OsinfoInstallConfigParam *
osinfo_install_config_param_new (const gchar *name
);
Construct a new configuration parameter for an OsinfoInstallScript.
const gchar *
osinfo_install_config_param_get_name (const OsinfoInstallConfigParam *config_param
);
OsinfoInstallConfigParamPolicy
osinfo_install_config_param_get_policy
(const OsinfoInstallConfigParam *config_param
);
gboolean
osinfo_install_config_param_is_required
(const OsinfoInstallConfigParam *config_param
);
gboolean
osinfo_install_config_param_is_optional
(const OsinfoInstallConfigParam *config_param
);
void osinfo_install_config_param_set_value_map (OsinfoInstallConfigParam *config_param
,OsinfoDatamap *datamap
);
After a call to osinfo_install_config_param_set_value_map()
, datamap
will
be used to transform values set for this parameter to OS-specific
values. A NULL datamap
will disable transformations.
config_param |
the configuration parameter |
|
datamap |
a OsinfoDatamap to transform values this parameter is set to, or NULL to disable transformations for this parameter |
OsinfoDatamap *
osinfo_install_config_param_get_value_map
(const OsinfoInstallConfigParam *config_param
);
#define OSINFO_INSTALL_CONFIG_PARAM_PROP_DATAMAP "value-map"
“name”
property“name” gchar *
The name of the configuration parameter.
Flags: Read / Write / Construct Only
Default value: NULL
“policy”
property“policy” OsinfoInstallConfigParamPolicy
The policy of the configuration parameter.
Flags: Read
Default value: OSINFO_INSTALL_CONFIG_PARAM_POLICY_OPTIONAL
“value-map”
property“value-map” OsinfoDatamap *
The mapping between generic values and OS-specific values for this configuration parameter
Flags: Read / Write