Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dbus.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2011 johannes hanika.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2012-2014, 2016-2017 Tobias Ellinghaus.
6 Copyright (C) 2016 Roman Lebedev.
7 Copyright (C) 2020 Pascal Obry.
8 Copyright (C) 2022 Martin Baƙinka.
9
10 darktable is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 darktable is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with darktable. If not, see <http://www.gnu.org/licenses/>.
22*/
23
24#ifndef DT_COMMON_DBUS_H
25#define DT_COMMON_DBUS_H
26
27#include <glib.h>
28#include <gio/gio.h>
29
30typedef struct dt_dbus_t
31{
33
34 GDBusNodeInfo *introspection_data;
35 guint owner_id;
37
38 // used for client actions on the bus
39 GDBusConnection *dbus_connection;
41
44
46void dt_dbus_destroy(const dt_dbus_t *);
47
48/* Process-wide singleton with no per-call context to ride on: this accessor is the
49 * intended end state (same category as dt_conf_*), implemented by the orchestrator. */
50struct dt_dbus_t *dt_dbus_get_global(void);
51
54gboolean dt_dbus_connected(const dt_dbus_t *);
55
56#endif // DT_COMMON_DBUS_H
57
58// clang-format off
59// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
60// vim: shiftwidth=2 expandtab tabstop=2 cindent
61// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
62// clang-format on
63
struct dt_dbus_t * dt_dbus_get_global(void)
Definition darktable.c:641
dt_dbus_t * dt_dbus_init()
Definition dbus.c:136
void dt_dbus_destroy(const dt_dbus_t *)
Definition dbus.c:156
gboolean dt_dbus_connected(const dt_dbus_t *)
Definition dbus.c:170
GDBusConnection * dbus_connection
Definition dbus.h:39
GDBusNodeInfo * introspection_data
Definition dbus.h:34
int connected
Definition dbus.h:32
guint registration_id
Definition dbus.h:36
guint owner_id
Definition dbus.h:35