Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
backend_kwallet.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010, 2013-2014, 2016 Tobias Ellinghaus.
4 Copyright (C) 2011 johannes hanika.
5 Copyright (C) 2012 Richard Wonka.
6 Copyright (C) 2022 Martin Baƙinka.
7
8 darktable is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 darktable is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with darktable. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22// darktable is free software: you can redistribute it and/or modify
23// it under the terms of the GNU General Public License as published by
24// the Free Software Foundation, either version 3 of the License, or
25// (at your option) any later version.
26//
27// darktable is distributed in the hope that it will be useful,
28// but WITHOUT ANY WARRANTY; without even the implied warranty of
29// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30// GNU General Public License for more details.
31//
32// You should have received a copy of the GNU General Public License
33// along with darktable. If not, see <http://www.gnu.org/licenses/>.
34
35#pragma once
36
37#include "pwstorage.h"
38#include <glib.h>
39
42{
43 // Connection to the DBus session bus.
44 // DBusGConnection* connection;
45 GDBusConnection *connection;
46
47 // Proxy to the kwallet DBus service.
48 GDBusProxy *proxy;
49
50 // The name of the wallet we've opened. Set during init_kwallet().
53
59gboolean dt_pwstorage_kwallet_set(const backend_kwallet_context_t *context, const gchar *slot,
60 GHashTable *table);
62GHashTable *dt_pwstorage_kwallet_get(const backend_kwallet_context_t *context, const gchar *slot);
63
64// clang-format off
65// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
66// vim: shiftwidth=2 expandtab tabstop=2 cindent
67// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
68// clang-format on
69
const backend_kwallet_context_t * dt_pwstorage_kwallet_new()
Definition backend_kwallet.c:240
void dt_pwstorage_kwallet_destroy(const backend_kwallet_context_t *context)
Definition backend_kwallet.c:267
GHashTable * dt_pwstorage_kwallet_get(const backend_kwallet_context_t *context, const gchar *slot)
Definition backend_kwallet.c:485
gboolean dt_pwstorage_kwallet_set(const backend_kwallet_context_t *context, const gchar *slot, GHashTable *table)
Definition backend_kwallet.c:369
Definition backend_kwallet.h:42
gchar * wallet_name
Definition backend_kwallet.h:51
GDBusProxy * proxy
Definition backend_kwallet.h:48
GDBusConnection * connection
Definition backend_kwallet.h:45