![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "pwstorage.h"
#include "control/conf.h"
#include "control/control.h"
#include <glib.h>
#include <string.h>
Functions | |
const dt_pwstorage_t * | dt_pwstorage_new () |
void | dt_pwstorage_destroy (const dt_pwstorage_t *pwstorage) |
gboolean | dt_pwstorage_set (const gchar *slot, GHashTable *table) |
GHashTable * | dt_pwstorage_get (const gchar *slot) |
void dt_pwstorage_destroy | ( | const dt_pwstorage_t * | pwstorage | ) |
Cleanup and destroy pwstorage context.
References dt_pwstorage_t::backend_context, darktable, DT_DEBUG_PWSTORAGE, dt_print(), dt_pwstorage_kwallet_destroy(), dt_pwstorage_libsecret_destroy(), dt_pwstorage_t::pw_storage_backend, PW_STORAGE_BACKEND_KWALLET, PW_STORAGE_BACKEND_LIBSECRET, PW_STORAGE_BACKEND_NONE, and darktable_t::pwstorage.
Referenced by dt_cleanup().
GHashTable * dt_pwstorage_get | ( | const gchar * | slot | ) |
Load (key,value) pairs.
References dt_pwstorage_t::backend_context, darktable, DT_DEBUG_PWSTORAGE, dt_print(), dt_pwstorage_kwallet_get(), dt_pwstorage_libsecret_get(), dt_pwstorage_t::pw_storage_backend, PW_STORAGE_BACKEND_KWALLET, PW_STORAGE_BACKEND_LIBSECRET, PW_STORAGE_BACKEND_NONE, and darktable_t::pwstorage.
Referenced by _piwigo_load_account(), _piwigo_set_account(), and get_password().
const dt_pwstorage_t * dt_pwstorage_new | ( | ) |
Initializes a new pwstorage context.
References dt_pwstorage_t::backend_context, dt_capabilities_add(), dt_conf_get_string_const(), dt_conf_set_string(), dt_control_log(), DT_DEBUG_PWSTORAGE, dt_print(), dt_pwstorage_kwallet_new(), dt_pwstorage_libsecret_new(), dt_pwstorage_t::pw_storage_backend, PW_STORAGE_BACKEND_KWALLET, PW_STORAGE_BACKEND_LIBSECRET, and PW_STORAGE_BACKEND_NONE.
Referenced by dt_init().
gboolean dt_pwstorage_set | ( | const gchar * | slot, |
GHashTable * | table | ||
) |
Store (key,value) pairs.
References dt_pwstorage_t::backend_context, darktable, DT_DEBUG_PWSTORAGE, dt_print(), dt_pwstorage_kwallet_set(), dt_pwstorage_libsecret_set(), FALSE, dt_pwstorage_t::pw_storage_backend, PW_STORAGE_BACKEND_KWALLET, PW_STORAGE_BACKEND_LIBSECRET, PW_STORAGE_BACKEND_NONE, and darktable_t::pwstorage.
Referenced by _piwigo_set_account(), and save_password().