![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "backend_libsecret.h"#include "control/conf.h"#include <glib.h>#include <json-glib/json-glib.h>#include <libsecret/secret.h>
Include dependency graph for backend_libsecret.c:Macros | |
| #define | SECRET_COLLECTION_DARKTABLE SECRET_COLLECTION_DEFAULT |
| #define | EMPTY_STRING(string) !*(string) |
| #define | SECRET_SCHEMA_DARKTABLE secret_darktable_get_schema() |
Functions | |
| static const SecretSchema * | secret_darktable_get_schema (void) |
| const backend_libsecret_context_t * | dt_pwstorage_libsecret_new () |
| void | dt_pwstorage_libsecret_destroy (const backend_libsecret_context_t *context) |
| gboolean | dt_pwstorage_libsecret_set (const backend_libsecret_context_t *context, const gchar *slot, GHashTable *attributes) |
| GHashTable * | dt_pwstorage_libsecret_get (const backend_libsecret_context_t *context, const gchar *slot) |
| static void | append_pair_to_json (gpointer key, gpointer value, gpointer data) |
| static gchar * | attributes_to_secret (GHashTable *attributes) |
| static GHashTable * | secret_to_attributes (gchar *secret) |
| #define EMPTY_STRING | ( | string | ) | !*(string) |
| #define SECRET_COLLECTION_DARKTABLE SECRET_COLLECTION_DEFAULT |
| #define SECRET_SCHEMA_DARKTABLE secret_darktable_get_schema() |
|
static |
References key.
Referenced by attributes_to_secret().
|
static |
References append_pair_to_json().
Referenced by dt_pwstorage_libsecret_set().
| void dt_pwstorage_libsecret_destroy | ( | const backend_libsecret_context_t * | context | ) |
Destroys the libsecret backend context.
| context | The libsecret context |
Referenced by dt_pwstorage_destroy(), and dt_pwstorage_libsecret_new().
| GHashTable * dt_pwstorage_libsecret_get | ( | const backend_libsecret_context_t * | context, |
| const gchar * | slot | ||
| ) |
Loads (key, value) pairs
| context | The libsecret context |
| slot | The name of the slot |
References EMPTY_STRING, error(), PACKAGE_NAME, SECRET_SCHEMA_DARKTABLE, and secret_to_attributes().
Referenced by dt_pwstorage_get().
| const backend_libsecret_context_t * dt_pwstorage_libsecret_new | ( | ) |
Initializes a new libsecret backend context.
References dt_pwstorage_libsecret_destroy(), and error().
Referenced by dt_pwstorage_new().
| gboolean dt_pwstorage_libsecret_set | ( | const backend_libsecret_context_t * | context, |
| const gchar * | slot, | ||
| GHashTable * | attributes | ||
| ) |
Store (key,value) pairs.
| context | The libsecret context |
| slot | The name of the slot |
| attributes | List of (key,value) pairs |
References attributes_to_secret(), EMPTY_STRING, error(), FALSE, PACKAGE_NAME, SECRET_COLLECTION_DARKTABLE, and SECRET_SCHEMA_DARKTABLE.
Referenced by dt_pwstorage_set().
|
static |
|
static |
References EMPTY_STRING, FALSE, and key.
Referenced by dt_pwstorage_libsecret_get().