Method

MalcontentUserManagerget_user_by_username_async

unstable since: 0.14.0

Declaration [src]

void
mct_user_manager_get_user_by_username_async (
  MctUserManager* self,
  const char* username,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  void* user_data
)

Description [src]

Get the user with the given username.

It is not safe to call this before mct_user_manager_load_async() is finished.

Available since: 0.14.0

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

Parameters

username

Type: const char*

Username to fetch.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
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

Callback for when the operation is complete.

The argument can be NULL.
user_data

Type: void*

Data to pass to callback.

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