Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

dbus_util.h File Reference


Detailed Description

Interface to dbus messaging bus.

Author:
Hans de Graaff
Date:
2005

Go to the source code of this file.

Defines

#define DBS_EVT   "Events"
 Notification events.

#define DBS_EVT_DOWNLOAD_DONE   "DownloadDone"
#define DBS_EVT_PEERMODE_CHANGE   "PeermodeChange"

Functions

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 *, const char *)
 Send a message on the bus.


Define Documentation

#define DBS_EVT   "Events"
 

Notification events.

These should not be translated, they are part of the machine protocol on dbus.

#define DBS_EVT_DOWNLOAD_DONE   "DownloadDone"
 

#define DBS_EVT_PEERMODE_CHANGE   "PeermodeChange"
 


Function Documentation

void dbus_util_close void   ) 
 

Close down the D-BUS connection and send final event.

Todo:
Include a timestamp or some other useful info

It's not really clear to me how I can free the bus that we have, but since we are shutting down now anyway it does not matter much except for the spotless record of memory reclaiming.

void dbus_util_init void   ) 
 

Initialize the bus connection.

Todo:
Include a timestamp or some other useful info

void dbus_util_send_message const char *  signal_name,
const char *  text
 

Send a message on the bus.

Parameters:
signal_name The name of the dbus signal to use
text The text to append to the message, NULL if n/a

< The dbus message to send


Generated on Sun Feb 12 10:49:59 2006 for Gtk-Gnutella by doxygen 1.3.6