Function

SecretServiceget_sync

Declaration [src]

SecretService*
secret_service_get_sync (
  SecretServiceFlags flags,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Get a SecretService proxy for the Secret Service.

If such a proxy object already exists, then the same proxy is returned.

If flags contains any flags of which parts of the secret service to ensure are initialized, then those will be initialized before returning.

This method may block indefinitely and should not be used in user interface threads.

Parameters

flags SecretServiceFlags
 

Flags for which service functionality to ensure is initialized.

cancellable GCancellable
 

Optional cancellation object.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: SecretService
 

A new reference to a SecretService proxy, which should be released with g_object_unref().

 The caller of the function takes ownership of the data, and is responsible for freeing it.