Function
MalcontentWebFilterdeserialize
unstable since: 0.14.0
Declaration [src]
MctWebFilter*
mct_web_filter_deserialize (
GVariant* variant,
uid_t user_id,
GError** error
)
Description [src]
Deserialize a set of web filters previously serialized with
mct_web_filter_serialize().
This function guarantees to be able to deserialize any serialized form from this version or older versions of libmalcontent.
If deserialization fails, MCT_MANAGER_ERROR_INVALID_DATA will
be returned.
Available since: 0.14.0
Parameters
variant-
Type:
GVariantA serialized web filter variant.
The data is owned by the caller of the function. user_id-
Type:
uid_tThe ID of the user the web filter relates to.
error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the function if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: MctWebFilter
Deserialized web filter.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |