mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
Add methods to get services from collections, items
* Add secret_collection_get_service() * Add secret_item_get_service()
This commit is contained in:
parent
79aab9d941
commit
e13b8c4680
@ -13,6 +13,7 @@ secret_collection_delete
|
||||
secret_collection_delete_finish
|
||||
secret_collection_delete_sync
|
||||
secret_collection_get_created
|
||||
secret_collection_get_service
|
||||
secret_collection_get_items
|
||||
secret_collection_get_label
|
||||
secret_collection_set_label
|
||||
@ -57,6 +58,7 @@ secret_item_set_label_finish
|
||||
secret_item_set_label_sync
|
||||
secret_item_get_locked
|
||||
secret_item_get_modified
|
||||
secret_item_get_service
|
||||
secret_item_get_secret
|
||||
secret_item_get_secret_finish
|
||||
secret_item_get_secret_sync
|
||||
|
@ -1170,6 +1170,21 @@ secret_collection_delete_sync (SecretCollection *self,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* secret_collection_get_service:
|
||||
* @self: a collection
|
||||
*
|
||||
* Get the Secret Service object that this collection was created with.
|
||||
*
|
||||
* Returns: (transfer none): the Secret Service object
|
||||
*/
|
||||
SecretService *
|
||||
secret_collection_get_service (SecretCollection *self)
|
||||
{
|
||||
g_return_val_if_fail (SECRET_IS_COLLECTION (self), NULL);
|
||||
return self->pv->service;
|
||||
}
|
||||
|
||||
/**
|
||||
* secret_collection_get_items:
|
||||
* @self: a collection
|
||||
|
@ -96,6 +96,8 @@ gboolean secret_collection_delete_sync (SecretCollection
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
SecretService * secret_collection_get_service (SecretCollection *self);
|
||||
|
||||
GList * secret_collection_get_items (SecretCollection *self);
|
||||
|
||||
gchar * secret_collection_get_label (SecretCollection *self);
|
||||
|
@ -937,6 +937,22 @@ secret_item_delete_sync (SecretItem *self,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* secret_item_get_service:
|
||||
* @self: an item
|
||||
*
|
||||
* Get the Secret Service object that this item was created with.
|
||||
*
|
||||
* Returns: (transfer none): the Secret Service object
|
||||
*/
|
||||
SecretService *
|
||||
secret_item_get_service (SecretItem *self)
|
||||
{
|
||||
g_return_val_if_fail (SECRET_IS_COLLECTION (self), NULL);
|
||||
return self->pv->service;
|
||||
}
|
||||
|
||||
|
||||
typedef struct {
|
||||
GCancellable *cancellable;
|
||||
SecretValue *value;
|
||||
|
@ -102,6 +102,8 @@ gboolean secret_item_delete_sync (SecretItem *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
SecretService * secret_item_get_service (SecretItem *self);
|
||||
|
||||
void secret_item_get_secret (SecretItem *self,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
|
Loading…
Reference in New Issue
Block a user