Function
FwupdPluginstrtobool
Declaration [src]
gboolean
fu_strtobool (
const gchar* str,
gboolean* value,
GError** error
)
Description [src]
Converts a string value to a boolean. Only true
and false
are accepted values.
Available since: | 1.8.2 |
Parameters
str |
const gchar* |
A string, e.g. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
value |
gboolean* |
Parsed value. |
|
The argument will be set by the function. | |
The argument can be set to NULL . | |
error |
GError ** |
The return location for a GError* , or NULL . |