![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/dbus.h"
#include "common/darktable.h"
#include "control/conf.h"
#include "control/control.h"
#include "common/file_location.h"
Functions | |
static void | _handle_method_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) |
static GVariant * | _handle_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) |
static void | _on_bus_acquired (GDBusConnection *connection, const gchar *name, gpointer user_data) |
static void | _on_name_acquired (GDBusConnection *connection, const gchar *name, gpointer user_data) |
static void | _on_name_lost (GDBusConnection *connection, const gchar *name, gpointer user_data) |
struct dt_dbus_t * | dt_dbus_init () |
void | dt_dbus_destroy (const dt_dbus_t *dbus) |
gboolean | dt_dbus_connected (const dt_dbus_t *dbus) |
Variables | |
static const gchar | introspection_xml [] |
static const GDBusInterfaceVTable | interface_vtable |
|
static |
References dt_loc_get_datadir(), dt_loc_get_user_config_dir(), FALSE, PATH_MAX, and TRUE.
|
static |
References dt_control_quit(), dt_load_from_string(), dt_lua_async_call_string, and TRUE.
|
static |
References dt_dbus_t::connected, interface_vtable, dt_dbus_t::introspection_data, and dt_dbus_t::registration_id.
Referenced by dt_dbus_init().
|
static |
References dt_dbus_t::connected.
Referenced by dt_dbus_init().
|
static |
References dt_dbus_t::connected.
Referenced by dt_dbus_init().
gboolean dt_dbus_connected | ( | const dt_dbus_t * | dbus | ) |
have we managed to get the dbus name? when not, then there is already another instance of darktable running
References dt_dbus_t::connected.
closes down database and frees memory
References dt_dbus_t::dbus_connection, dt_dbus_t::introspection_data, and dt_dbus_t::owner_id.
struct dt_dbus_t * dt_dbus_init | ( | ) |
allocates and initializes dbus
References _on_bus_acquired(), _on_name_acquired(), _on_name_lost(), dt_dbus_t::dbus_connection, FALSE, dt_dbus_t::introspection_data, introspection_xml, and dt_dbus_t::owner_id.
|
static |
Referenced by _on_bus_acquired().
|
static |
Referenced by dt_dbus_init().