28#ifndef _PURPLE_DBUS_SERVER_H_
29#define _PURPLE_DBUS_SERVER_H_
31#include "dbus-purple.h"
68#define PURPLE_DBUS_TYPE(type) (&PURPLE_DBUS_TYPE_##type)
71#define PURPLE_DBUS_DECLARE_TYPE(type) \
72 extern PurpleDBusType PURPLE_DBUS_TYPE_##type;
74#define PURPLE_DBUS_DEFINE_TYPE(type) \
75 PurpleDBusType PURPLE_DBUS_TYPE_##type = { NULL };
77#define PURPLE_DBUS_DEFINE_INHERITING_TYPE(type, parent) \
78 PurpleDBusType PURPLE_DBUS_TYPE_##type = { PURPLE_DBUS_TYPE(parent) };
80#define PURPLE_DBUS_RETURN_FALSE_IF_DISABLED(plugin) \
81 if (purple_dbus_get_init_error() != NULL) \
84 title = g_strdup_printf("Unable to Load %s Plugin", plugin->info->name); \
85 purple_notify_error(NULL, title, \
86 _("Purple's D-BUS server is not running for the reason listed below"), \
87 _(purple_dbus_get_init_error())); \
212#include "dbus-types.h"
typedefG_BEGIN_DECLS struct _PurpleDBusType PurpleDBusType
Types of pointers are identified by the ADDRESS of a PurpleDbusType object.
void purple_dbus_uninit(void)
Uninitializes Purple's D-BUS server.
void purple_dbus_register_pointer(gpointer node, PurpleDBusType *type)
Registers a typed pointer.
const char * purple_dbus_get_init_error(void)
Returns whether Purple's D-BUS subsystem is up and running.
void purple_dbus_unregister_pointer(gpointer node)
Unregisters a pointer previously registered with purple_dbus_register_pointer.
gboolean purple_dbus_is_owner(void)
Determines whether this instance owns the DBus service name.
void purple_dbus_init_ids(void)
Initializes purple dbus pointer registration engine.
void purple_dbus_init(void)
Starts Purple's D-BUS server.
void purple_dbus_signal_emit_purple(const char *name, int num_values, PurpleValue **values, va_list vargs)
Emits a dbus signal.
void * purple_dbus_get_handle(void)
Returns the dbus subsystem handle.
A wrapper for a type, subtype, and specific type of value.