Method

MalcontentManagerset_web_filter_async

unstable since: 0.14.0

Declaration [src]

void
mct_manager_set_web_filter_async (
  MctManager* self,
  uid_t user_id,
  MctWebFilter* web_filter,
  MctManagerSetValueFlags flags,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  void* user_data
)

Description [src]

Asynchronously set the web filter settings for the given user_id to the given web_filter instance.

On failure, a MctManagerError, a GDBusError or a GIOErrorEnum will be returned via mct_manager_set_web_filter_finish(). The user’s web filter settings will be left in an undefined state.

Available since: 0.14.0

This method completes asynchronously. Use mct_manager_set_web_filter_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

user_id

Type: uid_t

ID of the user to set the web filter for, typically coming from getuid().

web_filter

Type: MctWebFilter

The web filter to set for the user.

The data is owned by the caller of the method.
flags

Type: MctManagerSetValueFlags

Flags to affect the behaviour of the call.

cancellable

Type: GCancellable

A GCancellable, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

An asynchronous operation result callback.

The argument can be NULL.
user_data

Type: void*

User data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.