ibusinternal

ibusinternal — IBus DBus setting functions for internal use.

Stability Level

Stable, unless otherwise indicated

Synopsis

#define             I_                                  (string)
void                dbus_server_setup                   (DBusServer *server,
                                                         GMainContext *context);
void                dbus_connection_setup               (DBusConnection *connection,
                                                         GMainContext *context);

Description

This section contain several IBus house keeping functions.

Details

I_()

#define I_(string) g_intern_static_string (string)

string :


dbus_server_setup ()

void                dbus_server_setup                   (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.

If called twice for the same context, does nothing the second time. If called once with context A and once with context B, context B replaces context A as the context monitoring the connection.

server :

the server

context :

the GMainContext or NULL for default

dbus_connection_setup ()

void                dbus_connection_setup               (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.

If called twice for the same context, does nothing the second time. If called once with context A and once with context B, context B replaces context A as the context monitoring the connection.

connection :

the connection

context :

the GMainContext or NULL for default context

See Also

#IBusMainLoop