Gio.DBusMessage.prototype.copy
function copy(): Gio.DBusMessage {
// Gjs wrapper for g_dbus_message_copy()
}
Copies message. The copy is a deep copy and the returned Gio.DBusMessage is completely identical except that it is guaranteed to not be locked.
This operation can fail if e.g. message contains file descriptors and the per-process or system-wide open files limit is reached.
Since 2.26
- Returns
A new Gio.DBusMessage or null if @error is set. Free with GObject.Object.prototype.unref.