YaST2 Developers Documentation: Configuration of samba-server



functions
files
intro

Configuration of samba-server

include/samba-server/routines.ycp
Miscelanous functions for configuration of samba-server.

Info:

Convert string value to a normalized boolean ("yes", "1", "true" -> true).

Parameters:
default the default value for value == nil
value the string value
Return value:
the converted value or default

Info:

Convert string value to a normalized string ("yes", "1", "true" -> true). Used if the smb.conf value can be also "auto". Then do not change the value.

Parameters:
default the default value for value == nil
value the string value
Return value:
the converted value or default

Info:

Return true, if the value is yes or auto (= enabled).

Parameters:
value string value
Return value:
true if it is yes or auto

Info:

Convert share description to items for a table (index, status, name, comment).

Parameters:
shares map of available shares
Return value:
list of table items

Info:

Test, if the share is enabled = available and not turned off by YaST.

Parameters:
options description of the share
Return value:
true if the share is enabled

Info:

Convert printer description to items for a multiselectionbox (index, printer name, status).

Parameters:
printers map of available printers
Return value:
list of box items

YaST2 Developers Documentation