Method

SecretItemset_attributes_sync

Declaration [src]

gboolean
secret_item_set_attributes_sync (
  SecretItem* self,
  const SecretSchema* schema,
  GHashTable* attributes,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Set the attributes of this item.

The attributes are a mapping of string keys to string values. Attributes are used to search for items. Attributes are not stored or transferred securely by the secret service.

This function may block indefinitely. Use the asynchronous version in user interface threads.

Parameters

schema SecretSchema
 

The schema for the attributes.

 The argument can be NULL.
 The data is owned by the caller of the function.
attributes GHashTable
 

A new set of attributes.

 The data is owned by the caller of the function.
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: gboolean
 

Whether the change was successful or not.