#include <dbus/dbus.h>
Idź do kodu źródłowego tego pliku.
Dokumentacja definicji
#define DBUS_API_SUBJECT_TO_CHANGE |
#define DBUS_ORG_FREEDESKTOP_IM_INTERFACE "org.freedesktop.im" |
#define EKG2_DBUS_ADD |
( |
|
type, |
|
|
|
x |
|
) |
| |
Wartość:do { \
if (!dbus_message_iter_append_basic(&args, type, (x) )) { \
debug("%s cannot allocate memory?\n", __FUNCTION__); \
ekg_oom_handler(); \
} \
} while(0)
#define EKG2_DBUS_ADD_STRING |
( |
|
x | ) |
EKG2_DBUS_ADD(DBUS_TYPE_STRING, x) |
#define EKG2_DBUS_CALL_HANDLER_VARIABLES |
Wartość:DBusMessage *reply; \
DBusMessageIter args; \
dbus_uint32_t serial = 0;
#define EKG2_DBUS_IFACE_HANDLER |
( |
|
x | ) |
DBusHandlerResult x(DBusConnection *conn, DBusMessage *msg, void *data) |
#define EKG2_DBUS_INIT_REPLY |
Wartość:reply = dbus_message_new_method_return(msg); \
dbus_message_iter_init_append(reply, &args)
#define EKG2_DBUS_SEND_REPLY |
Wartość:do { \
if (!dbus_connection_send(conn, reply, &serial)) { \
debug("Cannot send reply!\n"); \
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; \
} \
dbus_connection_flush(conn); \
} while(0)
Dokumentacja definicji typów