Method
MalcontentManagerset_app_filter_async
since: 0.3.0
Declaration [src]
void
mct_manager_set_app_filter_async (
MctManager* self,
uid_t user_id,
MctAppFilter* app_filter,
MctManagerSetValueFlags flags,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously set the app filter settings for the given user_id to the given app_filter instance.
This will set all fields of the app filter.
On failure, a MctManagerError, a GDBusError or a
GIOErrorEnum will be returned. The user’s app filter settings will be
left in an undefined state.
Available since: 0.3.0
This method completes asynchronously. Use mct_manager_set_app_filter_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
user_id-
Type:
uid_tID of the user to set the filter for, typically coming from
getuid(). app_filter-
Type:
MctAppFilterThe app filter to set for the user.
The data is owned by the caller of the method. flags-
Type:
MctManagerSetValueFlagsFlags to affect the behaviour of the call.
cancellable-
Type:
GCancellableA
GCancellable, orNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackAn asynchronous operation result callback.
The argument can be NULL. user_data-
Type:
gpointerUser data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.