Gtk-Gnutella will send notifications on the dbus message bus as signals with a string parameter. Depending on the signal the parameter will have a different meaning. Also see the documenation in doc/other/dbus-support.txt
#include "common.h"
#include "dbus_util.h"
#include <dbus/dbus.h>
Defines | |
| #define | DBUS_API_SUBJECT_TO_CHANGE |
| #define | DBUS_PATH "/net/gtkg/events" |
| The dbus path to the object serving the notifications. | |
| #define | DBUS_INTERFACE "net.gtkg.Events" |
| The interface that is sending the notifications. | |
Functions | |
| RCSID ("$Id:dbus_util.c, v 1.10 2005/12/17 09:25:44 daichik Exp $") | |
| void | dbus_util_init (void) |
| Initialize the bus connection. | |
| void | dbus_util_close (void) |
| Close down the D-BUS connection and send final event. | |
| void | dbus_util_send_message (const char *signal_name, const char *text) |
| Send a message on the bus. | |
Variables | |
| DBusConnection * | bus = NULL |
| D-Bus connection to the message bus. | |
|
|
|
|
|
The interface that is sending the notifications.
|
|
|
The dbus path to the object serving the notifications.
|
|
|
Close down the D-BUS connection and send final event.
|
|
|
Initialize the bus connection.
|
|
||||||||||||
|
Send a message on the bus.
< The dbus message to send |
|
||||||||||||
|
|
|
|
D-Bus connection to the message bus.
|
1.3.6