211. ProductFeatures

Product features

211.1. Authors

  • Anas Nashif <nashif@suse.de>

  • Jiri Srain <jsrain@suse.cz>

211.2. Summary of Module Globals

List of Global Functions

List of Global Variables

    211.3. Global Functions

    211.3.1. Export

    Exports the current set of ProductFeatures

    Return value

    • map <string, map <string, any> > - features

    211.3.2. GetBooleanFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • boolean - the feature value

    211.3.3. GetFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • any - the feature value

    211.3.4. GetSection

    Get a complete section for evaluation

    Function parameters

    • string section_name

    Return value

    • map<string,any> - a map key->value, options in the section

    211.3.5. GetStringFeature

    Get value of a feature

    Function parameters

    • string section

    • string feature

    Return value

    • string - the feature value

    211.3.6. Import

    Imports product features

    Function parameters

    • map <string, map <string, any> > import_settings

    Return value

    • void

    211.3.7. InitIfNeeded

    Initialize the features structure if needed Either read from /etc/YaST2/ProductFeatures or set default values

    Return value

    • void

    211.3.8. Restore

    Restore product features in running system

    Return value

    • void

    211.3.9. Save

    Save product features

    Return value

    • void

    211.3.10. SetBooleanFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • boolean value

    Return value

    • void

    211.3.11. SetFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • any value

    Return value

    • void

    211.3.12. SetSection

    Set a feature section Default values will be used where value not defined

    Function parameters

    • string section_name

    • map<string,any> section_map

    Return value

    • void

    211.3.13. SetStringFeature

    Set value of a feature

    Function parameters

    • string section

    • string feature

    • string value

    Return value

    • void

    211.4. Global Variables

    211.5. Module Requirements

    211.5.1. Module Imports

    • Misc
    • Mode
    • Stage

    211.5.2. Module Includes