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#pragma once
25
26#include <glib.h>
27#include <gio/gio.h>
28
29typedef struct dt_dbus_t
30{
32
33 GDBusNodeInfo *introspection_data;
34 guint owner_id;
36
37 // used for client actions on the bus
38 GDBusConnection *dbus_connection;
40
43
45void dt_dbus_destroy(const dt_dbus_t *);
46
49gboolean dt_dbus_connected(const dt_dbus_t *);
50
51// clang-format off
52// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
53// vim: shiftwidth=2 expandtab tabstop=2 cindent
54// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
55// clang-format on
56
dt_dbus_t * dt_dbus_init()
Definition dbus.c:185
void dt_dbus_destroy(const dt_dbus_t *)
Definition dbus.c:205
gboolean dt_dbus_connected(const dt_dbus_t *)
Definition dbus.c:219
Definition dbus.h:30
GDBusConnection * dbus_connection
Definition dbus.h:38
GDBusNodeInfo * introspection_data
Definition dbus.h:33
int connected
Definition dbus.h:31
guint registration_id
Definition dbus.h:35
guint owner_id
Definition dbus.h:34