Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

GLib bindings
[D-BUS message system public API]

API for using D-BUS with GLib. More...

Functions

void dbus_connection_setup_with_g_main (DBusConnection *connection, GMainContext *context)
 Sets the watch and timeout functions of a DBusConnection to integrate the connection with the GLib main loop.

void dbus_server_setup_with_g_main (DBusServer *server, GMainContext *context)
 Sets the watch and timeout functions of a DBusServer to integrate the server with the GLib main loop.

G_BEGIN_DECLS void dbus_gthread_init (void)
 Initializes the D-BUS thread system to use GLib threads.


Detailed Description

API for using D-BUS with GLib.

Convenience functions are provided for using D-BUS with the GLib library (see http://www.gtk.org for GLib information).


Function Documentation

void dbus_connection_setup_with_g_main DBusConnection   connection,
GMainContext *    context
 

Sets the watch and timeout functions of a DBusConnection to integrate the connection with the GLib main loop.

Pass in NULL for the #GMainContext unless you're doing something specialized.

Parameters:
connection the connection
context the #GMainContext or NULL for default context

Definition at line 442 of file dbus-gmain.c.

References dbus_connection_allocate_data_slot(), dbus_connection_set_data(), dbus_connection_set_timeout_functions(), dbus_connection_set_wakeup_main_function(), and dbus_connection_set_watch_functions().

G_BEGIN_DECLS void dbus_gthread_init void   
 

Initializes the D-BUS thread system to use GLib threads.

This function may only be called once and must be called prior to calling any other function in the D-BUS API.

Definition at line 168 of file dbus-gthread.c.

References dbus_threads_init().

void dbus_server_setup_with_g_main DBusServer   server,
GMainContext *    context
 

Sets the watch and timeout functions of a DBusServer to integrate the server with the GLib main loop.

In most cases the context argument should be NULL.

Parameters:
server the server
context the #GMainContext or NULL for default

Definition at line 495 of file dbus-gmain.c.

References dbus_server_allocate_data_slot(), dbus_server_set_data(), dbus_server_set_timeout_functions(), and dbus_server_set_watch_functions().


Generated on Wed Oct 22 14:05:10 2003 for D-BUS by doxygen1.3-rc3