## DBusGMessage DBusGMessage — DBus Message |

## Stability Level

Stable, unless otherwise indicated

## Synopsis

    #include <dbus/dbus-glib.h>

                        DBusGMessage;
    #define             DBUS_TYPE_G_MESSAGE
    DBusGMessage *      dbus_g_message_ref                  (DBusGMessage *message);
    void                dbus_g_message_unref                (DBusGMessage *message);
    DBusMessage *       dbus_g_message_get_message          (DBusGMessage *gmessage);

## Description

A DBusGMessage is a boxed type abstracting a DBusMessage.

## Details

### DBusGMessage

    typedef struct _DBusGMessage DBusGMessage;

A DBusGMessage is a boxed type abstracting a DBusMessage from libdbus.

### DBUS_TYPE_G_MESSAGE

    #define DBUS_TYPE_G_MESSAGE      (dbus_g_message_get_g_type ())

Expands to a function call returning the boxed GType of a DBusGConnection.

Returns : | the GLib type

### dbus_g_message_ref ()

    DBusGMessage *      dbus_g_message_ref                  (DBusGMessage *message);

Increment refcount on a DBusGMessage

`message` : | the message to ref
Returns : | the message that was ref'd

### dbus_g_message_unref ()

    void                dbus_g_message_unref                (DBusGMessage *message);

Decrement refcount on a DBusGMessage

`message` : | the message to unref

### dbus_g_message_get_message ()

    DBusMessage *       dbus_g_message_get_message          (DBusGMessage *gmessage);

Get the DBusMessage corresponding to this DBusGMessage. The return value does not have its refcount incremented.

`gmessage` : | a DBusGMessage
Returns : | DBusMessage

## See Also

DBusMessage