Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
backend_libsecret.h
Go to the documentation of this file.
1
// This file is part of darktable
2
//
3
// Copyright (c) 2014 Moritz Lipp <mlq@pwmt.org>.
4
// Copyright (c) 2016 tobias ellinghaus <me@houz.org>.
5
//
6
// Permission is hereby granted, free of charge, to any person obtaining a copy
7
// of this software and associated documentation files (the "Software"), to deal
8
// in the Software without restriction, including without limitation the rights
9
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
// copies of the Software, and to permit persons to whom the Software is
11
// furnished to do so, subject to the following conditions:
12
//
13
// The above copyright notice and this permission notice shall be included in
14
// all copies or substantial portions of the Software.
15
//
16
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
// THE SOFTWARE.
23
24
#pragma once
25
26
#include <glib.h>
27
28
typedef
struct
backend_libsecret_context_t
29
{
30
int
placeholder
;
// we have to allocate one of these to signal that init didn't fail
31
}
backend_libsecret_context_t
;
32
38
const
backend_libsecret_context_t
*
dt_pwstorage_libsecret_new
();
39
45
void
dt_pwstorage_libsecret_destroy
(
const
backend_libsecret_context_t
*context);
46
56
gboolean
dt_pwstorage_libsecret_set
(
const
backend_libsecret_context_t
*context,
const
gchar *slot,
57
GHashTable *attributes);
58
67
GHashTable *
dt_pwstorage_libsecret_get
(
const
backend_libsecret_context_t
*context,
const
gchar *slot);
68
69
// clang-format off
70
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
71
// vim: shiftwidth=2 expandtab tabstop=2 cindent
72
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
73
// clang-format on
74
dt_pwstorage_libsecret_set
gboolean dt_pwstorage_libsecret_set(const backend_libsecret_context_t *context, const gchar *slot, GHashTable *attributes)
Definition
backend_libsecret.c:85
dt_pwstorage_libsecret_new
const backend_libsecret_context_t * dt_pwstorage_libsecret_new()
Definition
backend_libsecret.c:55
dt_pwstorage_libsecret_get
GHashTable * dt_pwstorage_libsecret_get(const backend_libsecret_context_t *context, const gchar *slot)
Definition
backend_libsecret.c:129
dt_pwstorage_libsecret_destroy
void dt_pwstorage_libsecret_destroy(const backend_libsecret_context_t *context)
Definition
backend_libsecret.c:80
backend_libsecret_context_t
Definition
backend_libsecret.h:29
backend_libsecret_context_t::placeholder
int placeholder
Definition
backend_libsecret.h:30
src
common
pwstorage
backend_libsecret.h
Generated by
1.9.8