G_BEGIN_DECLS IMPORT_C void | dbus_set_g_error | ( | GError ** | gerror, |
DBusError * | derror | |||
) |
dbus_set_g_error: : an error : a DBusError
FIXME
IMPORT_C GType | dbus_connection_get_g_type | ( | void | ) |
dbus_connection_get_g_type: Get the GLib type ID for a DBusConnection boxed type.
Returns: the GLib type
IMPORT_C GType | dbus_message_get_g_type | ( | void | ) |
dbus_message_get_g_type: Get the GLib type ID for a DBusMessage boxed type.
Returns: the GLib type
GType | dbus_pending_call_get_g_type | ( | void | ) |
IMPORT_C void | dbus_connection_setup_with_g_main | ( | DBusConnection * | connection, |
GMainContext * | context | |||
) |
dbus_connection_setup_with_g_main: : the connection : the GMainContext or NULL for default 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.
IMPORT_C void | dbus_server_setup_with_g_main | ( | DBusServer * | server, |
GMainContext * | context | |||
) |
dbus_server_setup_with_g_main: : the server : the GMainContext or NULL for default
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.
IMPORT_C void | dbus_g_proxy_send | ( | DBusGProxy * | proxy, |
DBusMessage * | message, | |||
dbus_uint32_t * | client_serial | |||
) |
dbus_g_proxy_send: : a proxy for a remote interface : the message to address and send : return location for message's serial, or NULL
Sends a message to the interface we're proxying for. Does not block or wait for a reply. The message is only actually written out when you return to the main loop or block in dbus_connection_flush().
The message is modified to be addressed to the target interface. That is, a destination name field or whatever is needed will be added to the message. The basic point of this function is to add the necessary header fields, otherwise it's equivalent to dbus_connection_send().
This function adds a reference to the message, so the caller still owns its original reference.
IMPORT_C DBusConnection * | dbus_g_connection_get_connection | ( | DBusGConnection * | gconnection | ) |
SECTION:dbus-glib-lowlevel : DBus lower level functions : Unstable
These functions can be used to access lower level of DBus. dbus_g_connection_get_connection: : a DBusGConnection
Get the DBusConnection corresponding to this DBusGConnection. The return value does not have its refcount incremented.
Returns: DBusConnection
IMPORT_C DBusGConnection * | dbus_connection_get_g_connection | ( | DBusConnection * | connection | ) |
dbus_connection_get_g_connection: : a DBusConnection
Get the DBusGConnection corresponding to this DBusConnection. This only makes sense if the DBusConnection was originally a DBusGConnection that was registered with the GLib main loop. The return value does not have its refcount incremented.
Returns: DBusGConnection
IMPORT_C DBusMessage * | dbus_g_message_get_message | ( | DBusGMessage * | gmessage | ) |
dbus_g_message_get_message: : a DBusGMessage
Get the DBusMessage corresponding to this DBusGMessage. The return value does not have its refcount incremented.
Returns: DBusMessage
IMPORT_C gchar * | dbus_g_method_get_sender | ( | DBusGMethodInvocation * | context | ) |
dbus_g_method_get_sender: : the method context
Get the sender of a message so we can send a "reply" later (i.e. send a message directly to a service which invoked the method at a later time).
Returns: the unique name of the sender. It is up to the caller to free the returned string.
IMPORT_C DBusMessage * | dbus_g_method_get_reply | ( | DBusGMethodInvocation * | context | ) |
dbus_g_method_get_reply: : the method context
Get the reply message to append reply values Used as a sidedoor when you can't generate dbus values of the correct type due to glib binding limitations
Returns: a DBusMessage with the reply
IMPORT_C void | dbus_g_method_send_reply | ( | DBusGMethodInvocation * | context, |
DBusMessage * | reply | |||
) |
dbus_g_method_send_reply: Send a manually created reply message : the method context : the reply message, will be unreffed
Used as a sidedoor when you can't generate dbus values of the correct type due to glib binding limitations