![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"
Include dependency graph for pwstorage.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dt_pwstorage_t |
Typedefs | |
| typedef enum pw_storage_backend_t | pw_storage_backend_t |
| typedef struct dt_pwstorage_t | dt_pwstorage_t |
Enumerations | |
| enum | pw_storage_backend_t { PW_STORAGE_BACKEND_NONE = 0 , PW_STORAGE_BACKEND_KWALLET , PW_STORAGE_BACKEND_LIBSECRET } |
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) |
| typedef struct dt_pwstorage_t dt_pwstorage_t |
pwstorage context
| typedef enum pw_storage_backend_t pw_storage_backend_t |
| enum pw_storage_backend_t |
| 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().