Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
backend_libsecret.h File Reference
#include <glib.h>
+ Include dependency graph for backend_libsecret.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  backend_libsecret_context_t
 

Typedefs

typedef struct backend_libsecret_context_t backend_libsecret_context_t
 

Functions

const backend_libsecret_context_tdt_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)
 

Typedef Documentation

◆ backend_libsecret_context_t

Function Documentation

◆ dt_pwstorage_libsecret_destroy()

void dt_pwstorage_libsecret_destroy ( const backend_libsecret_context_t context)

Destroys the libsecret backend context.

Parameters
contextThe libsecret context

Referenced by dt_pwstorage_destroy(), and dt_pwstorage_libsecret_new().

◆ dt_pwstorage_libsecret_get()

GHashTable * dt_pwstorage_libsecret_get ( const backend_libsecret_context_t context,
const gchar *  slot 
)

Loads (key, value) pairs

Parameters
contextThe libsecret context
slotThe name of the slot
Returns
table List of (key,value) pairs

References EMPTY_STRING, error(), PACKAGE_NAME, SECRET_SCHEMA_DARKTABLE, and secret_to_attributes().

Referenced by dt_pwstorage_get().

◆ dt_pwstorage_libsecret_new()

const backend_libsecret_context_t * dt_pwstorage_libsecret_new ( )

Initializes a new libsecret backend context.

Returns
The libsecret context

References dt_pwstorage_libsecret_destroy(), and error().

Referenced by dt_pwstorage_new().

◆ dt_pwstorage_libsecret_set()

gboolean dt_pwstorage_libsecret_set ( const backend_libsecret_context_t context,
const gchar *  slot,
GHashTable *  attributes 
)

Store (key,value) pairs.

Parameters
contextThe libsecret context
slotThe name of the slot
attributesList of (key,value) pairs
Returns
TRUE If function succeeded, otherwise FALSE

References attributes_to_secret(), EMPTY_STRING, error(), FALSE, PACKAGE_NAME, SECRET_COLLECTION_DARKTABLE, and SECRET_SCHEMA_DARKTABLE.

Referenced by dt_pwstorage_set().