
functions
files
intro
|
|
Bootloader installation and configuration
|
include/bootloader/routines/routines.ycp
|
Several routines not using any variable of any module
|
|
|
Local Functions
- appendValue (list<map> section, string key, any value)
- getCreationType (list<map> section)
- getValueMap (list<map> section, string key)
- lookupValueByIndex (list<map> section, integer index, any default)
- lookup_value (list<map> section, string key, any default)
- modifySection (list<map> section, string key, any value)
- setValueByIndex (list<map> section, integer index, string key, any value)
|
|
|
local lookup_value (list<map> section, string key, any default) -> any
|
|
Get value of some key in bootloader section
- Parameters:
section |
list representating bootloader section |
key |
string key of requested parameter |
default |
any default value to be returned if key not present |
- Return value:
local getValueMap (list<map> section, string key) -> map
|
|
Get map describing value from section
- Parameters:
section |
list representating bootloader section |
key |
string key of requested parameter |
- Return value:
|
of option, empty map if not found |
local appendValue (list<map> section, string key, any value) -> list<map>
|
|
Append key with appropriate value to the end of the section
- Parameters:
section |
list section list |
key |
string key name |
value |
any value to specified key |
- Return value:
local lookupValueByIndex (list<map> section, integer index, any default) -> any
|
|
Lookup at value of entry with specified index in the section
- Parameters:
section |
list section list |
index |
integer index of entry in section |
default |
any to be returned if specified entry not present |
- Return value:
|
value of specified entry of PPD file |
local modifySection (list<map> section, string key, any value) -> list<map>
|
|
Replace first occurence of option with specified value,
remove other occurences, add if no occurence present
- Parameters:
section |
list of section to be changed |
key |
string key of requested parameter |
value |
any value to be set, nil for removing key |
- Return value:
local setValueByIndex (list<map> section, integer index, string key, any value) -> list<map>
|
|
Set value to the section
- Parameters:
section |
list representing bootloader section |
index |
index of the value, -1 = unknown, -2 = new option |
key |
string option key |
value |
any option value |
- Return value:
|
updated bootloader section |
local getCreationType (list<map> section) -> string
|
|
Get creator type of the section
- Parameters:
section |
map section description structure |
- Return value:
|