mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 20:58:52 +00:00
f962662b09
* Move the dbus object path based functionality into its own file and own section of the documentation.
220 lines
14 KiB
C
220 lines
14 KiB
C
/* libsecret - GLib wrapper for Secret Service
|
|
*
|
|
* Copyright 2011 Collabora Ltd.
|
|
* Copyright 2012 Red Hat Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published
|
|
* by the Free Software Foundation; either version 2.1 of the licence or (at
|
|
* your option) any later version.
|
|
*
|
|
* See the included COPYING file for more information.
|
|
*
|
|
* Author: Stef Walter <stefw@gnome.org>
|
|
*/
|
|
|
|
#if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION)
|
|
#error "Only <secret/secret.h> or <secret/secret-unstable.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __SECRET_PATHS_H__
|
|
#define __SECRET_PATHS_H__
|
|
|
|
#include <gio/gio.h>
|
|
|
|
#include "secret-prompt.h"
|
|
#include "secret-schema.h"
|
|
#include "secret-types.h"
|
|
#include "secret-value.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void secret_service_search_for_paths (SecretService *self,
|
|
GHashTable *attributes,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gboolean secret_service_search_for_paths_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
gchar ***unlocked,
|
|
gchar ***locked,
|
|
GError **error);
|
|
|
|
gboolean secret_service_search_for_paths_sync (SecretService *self,
|
|
GHashTable *attributes,
|
|
GCancellable *cancellable,
|
|
gchar ***unlocked,
|
|
gchar ***locked,
|
|
GError **error);
|
|
|
|
void secret_service_get_secret_for_path (SecretService *self,
|
|
const gchar *item_path,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
SecretValue * secret_service_get_secret_for_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
SecretValue * secret_service_get_secret_for_path_sync (SecretService *self,
|
|
const gchar *item_path,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void secret_service_get_secrets_for_paths (SecretService *self,
|
|
const gchar **item_paths,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
GHashTable * secret_service_get_secrets_for_paths_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
GHashTable * secret_service_get_secrets_for_paths_sync (SecretService *self,
|
|
const gchar **item_paths,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
gint secret_service_lock_paths_sync (SecretService *self,
|
|
const gchar **paths,
|
|
GCancellable *cancellable,
|
|
gchar ***locked,
|
|
GError **error);
|
|
|
|
void secret_service_lock_paths (SecretService *self,
|
|
const gchar **paths,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gint secret_service_lock_paths_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
gchar ***locked,
|
|
GError **error);
|
|
|
|
gint secret_service_unlock_paths_sync (SecretService *self,
|
|
const gchar **paths,
|
|
GCancellable *cancellable,
|
|
gchar ***unlocked,
|
|
GError **error);
|
|
|
|
void secret_service_unlock_paths (SecretService *self,
|
|
const gchar **paths,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gint secret_service_unlock_paths_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
gchar ***unlocked,
|
|
GError **error);
|
|
|
|
GVariant * secret_service_prompt_path_sync (SecretService *self,
|
|
const gchar *prompt_path,
|
|
GCancellable *cancellable,
|
|
const GVariantType *return_type,
|
|
GError **error);
|
|
|
|
void secret_service_prompt_path (SecretService *self,
|
|
const gchar *prompt_path,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
GVariant * secret_service_prompt_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
const GVariantType *return_type,
|
|
GError **error);
|
|
|
|
void secret_service_delete_path (SecretService *self,
|
|
const gchar *item_path,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gboolean secret_service_delete_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
gboolean secret_service_delete_path_sync (SecretService *self,
|
|
const gchar *item_path,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void secret_service_create_collection_path (SecretService *self,
|
|
GHashTable *properties,
|
|
const gchar *alias,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gchar * secret_service_create_collection_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
gchar * secret_service_create_collection_path_sync (SecretService *self,
|
|
GHashTable *properties,
|
|
const gchar *alias,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void secret_service_create_item_path (SecretService *self,
|
|
const gchar *collection_path,
|
|
GHashTable *properties,
|
|
SecretValue *value,
|
|
gboolean replace,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gchar * secret_service_create_item_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
gchar * secret_service_create_item_path_sync (SecretService *self,
|
|
const gchar *collection_path,
|
|
GHashTable *properties,
|
|
SecretValue *value,
|
|
gboolean replace,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void secret_service_read_alias_path (SecretService *self,
|
|
const gchar *alias,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gchar * secret_service_read_alias_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
gchar * secret_service_read_alias_path_sync (SecretService *self,
|
|
const gchar *alias,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
void secret_service_set_alias_path (SecretService *self,
|
|
const gchar *alias,
|
|
const gchar *collection_path,
|
|
GCancellable *cancellable,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
|
|
gboolean secret_service_set_alias_path_finish (SecretService *self,
|
|
GAsyncResult *result,
|
|
GError **error);
|
|
|
|
gboolean secret_service_set_alias_path_sync (SecretService *self,
|
|
const gchar *alias,
|
|
const gchar *collection_path,
|
|
GCancellable *cancellable,
|
|
GError **error);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __SECRET_SERVICE_H___ */
|