Table of Contents

Class DBusMessage

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class DBusMessage
Inheritance
DBusMessage
Inherited Members

Methods

BytesNeeded(ref byte, nuint, out ErrorOwnedHandle)

Calls native function g_dbus_message_bytes_needed. Version: 2.26

[Version("2.26")]
public static extern long BytesNeeded(ref byte blob, nuint blobLen, out ErrorOwnedHandle error)

Parameters

blob byte

Transfer ownership: None Nullable: False

blobLen nuint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

long

Transfer ownership: None Nullable: False

Copy(IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_message_copy. Version: 2.26

[Version("2.26")]
public static extern IntPtr Copy(IntPtr message, out ErrorOwnedHandle error)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetArg0(IntPtr)

Calls native method g_dbus_message_get_arg0. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetArg0(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetArg0Path(IntPtr)

Calls native method g_dbus_message_get_arg0_path. Version: 2.80

[Version("2.80")]
public static extern NullableUtf8StringUnownedHandle GetArg0Path(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetBody(IntPtr)

Calls native method g_dbus_message_get_body. Version: 2.26

[Version("2.26")]
public static extern VariantUnownedHandle GetBody(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

VariantUnownedHandle

Transfer ownership: None Nullable: True

GetByteOrder(IntPtr)

Calls native method g_dbus_message_get_byte_order.

public static extern DBusMessageByteOrder GetByteOrder(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

DBusMessageByteOrder

Transfer ownership: None Nullable: False

GetDestination(IntPtr)

Calls native method g_dbus_message_get_destination. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetDestination(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetErrorName(IntPtr)

Calls native method g_dbus_message_get_error_name. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetErrorName(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetFlags(IntPtr)

Calls native method g_dbus_message_get_flags. Version: 2.26

[Version("2.26")]
public static extern DBusMessageFlags GetFlags(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

DBusMessageFlags

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_dbus_message_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHeader(IntPtr, DBusMessageHeaderField)

Calls native method g_dbus_message_get_header. Version: 2.26

[Version("2.26")]
public static extern VariantUnownedHandle GetHeader(IntPtr message, DBusMessageHeaderField headerField)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

headerField DBusMessageHeaderField

Transfer ownership: None Nullable: False

Returns

VariantUnownedHandle

Transfer ownership: None Nullable: True

GetHeaderFields(IntPtr)

Calls native method g_dbus_message_get_header_fields. Version: 2.26

[Version("2.26")]
public static extern byte[] GetHeaderFields(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

byte[]

Transfer ownership: None Nullable: False

GetInterface(IntPtr)

Calls native method g_dbus_message_get_interface. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetInterface(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetLocked(IntPtr)

Calls native method g_dbus_message_get_locked. Version: 2.26

[Version("2.26")]
public static extern bool GetLocked(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetMember(IntPtr)

Calls native method g_dbus_message_get_member. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetMember(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetMessageType(IntPtr)

Calls native method g_dbus_message_get_message_type. Version: 2.26

[Version("2.26")]
public static extern DBusMessageType GetMessageType(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

DBusMessageType

Transfer ownership: None Nullable: False

GetNumUnixFds(IntPtr)

Calls native method g_dbus_message_get_num_unix_fds. Version: 2.26

[Version("2.26")]
public static extern uint GetNumUnixFds(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetPath(IntPtr)

Calls native method g_dbus_message_get_path. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetPath(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetReplySerial(IntPtr)

Calls native method g_dbus_message_get_reply_serial. Version: 2.26

[Version("2.26")]
public static extern uint GetReplySerial(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetSender(IntPtr)

Calls native method g_dbus_message_get_sender. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetSender(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetSerial(IntPtr)

Calls native method g_dbus_message_get_serial. Version: 2.26

[Version("2.26")]
public static extern uint GetSerial(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetSignature(IntPtr)

Calls native method g_dbus_message_get_signature. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetSignature(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetUnixFdList(IntPtr)

Calls native method g_dbus_message_get_unix_fd_list. Version: 2.26

[Version("2.26")]
public static extern IntPtr GetUnixFdList(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

Lock(IntPtr)

Calls native method g_dbus_message_lock. Version: 2.26

[Version("2.26")]
public static extern void Lock(IntPtr message)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

New()

Calls native constructor g_dbus_message_new. Version: 2.26

[Version("2.26")]
public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromBlob(ref byte, nuint, DBusCapabilityFlags, out ErrorOwnedHandle)

Calls native constructor g_dbus_message_new_from_blob. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewFromBlob(ref byte blob, nuint blobLen, DBusCapabilityFlags capabilities, out ErrorOwnedHandle error)

Parameters

blob byte

Transfer ownership: None Nullable: False

blobLen nuint

Transfer ownership: None Nullable: False

capabilities DBusCapabilityFlags

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewMethodCall(NullableUtf8StringHandle, NonNullableUtf8StringHandle, NullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native constructor g_dbus_message_new_method_call. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewMethodCall(NullableUtf8StringHandle name, NonNullableUtf8StringHandle path, NullableUtf8StringHandle @interface, NonNullableUtf8StringHandle method)

Parameters

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interface NullableUtf8StringHandle
method NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewMethodErrorLiteral(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method g_dbus_message_new_method_error_literal. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewMethodErrorLiteral(IntPtr methodCallMessage, NonNullableUtf8StringHandle errorName, NonNullableUtf8StringHandle errorMessage)

Parameters

methodCallMessage IntPtr

Transfer ownership: None Nullable: False

errorName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

errorMessage NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewMethodErrorValist(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr)

Calls native method g_dbus_message_new_method_error_valist. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewMethodErrorValist(IntPtr methodCallMessage, NonNullableUtf8StringHandle errorName, NonNullableUtf8StringHandle errorMessageFormat, IntPtr varArgs)

Parameters

methodCallMessage IntPtr

Transfer ownership: None Nullable: False

errorName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

errorMessageFormat NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

varArgs IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewMethodReply(IntPtr)

Calls native method g_dbus_message_new_method_reply. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewMethodReply(IntPtr methodCallMessage)

Parameters

methodCallMessage IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewSignal(NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native constructor g_dbus_message_new_signal. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewSignal(NonNullableUtf8StringHandle path, NonNullableUtf8StringHandle @interface, NonNullableUtf8StringHandle signal)

Parameters

path NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interface NonNullableUtf8StringHandle
signal NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Print(IntPtr, uint)

Calls native method g_dbus_message_print. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringOwnedHandle Print(IntPtr message, uint indent)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

indent uint

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

SetBody(IntPtr, VariantHandle)

Calls native method g_dbus_message_set_body. Version: 2.26

[Version("2.26")]
public static extern void SetBody(IntPtr message, VariantHandle body)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

body VariantHandle

Transfer ownership: None Nullable: False

SetByteOrder(IntPtr, DBusMessageByteOrder)

Calls native method g_dbus_message_set_byte_order.

public static extern void SetByteOrder(IntPtr message, DBusMessageByteOrder byteOrder)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

byteOrder DBusMessageByteOrder

Transfer ownership: None Nullable: False

SetDestination(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_destination. Version: 2.26

[Version("2.26")]
public static extern void SetDestination(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetErrorName(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_dbus_message_set_error_name. Version: 2.26

[Version("2.26")]
public static extern void SetErrorName(IntPtr message, NonNullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: True

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetFlags(IntPtr, DBusMessageFlags)

Calls native method g_dbus_message_set_flags. Version: 2.26

[Version("2.26")]
public static extern void SetFlags(IntPtr message, DBusMessageFlags flags)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

flags DBusMessageFlags

Transfer ownership: None Nullable: False

SetHeader(IntPtr, DBusMessageHeaderField, VariantHandle)

Calls native method g_dbus_message_set_header. Version: 2.26

[Version("2.26")]
public static extern void SetHeader(IntPtr message, DBusMessageHeaderField headerField, VariantHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

headerField DBusMessageHeaderField

Transfer ownership: None Nullable: False

value VariantHandle

Transfer ownership: None Nullable: True

SetInterface(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_interface. Version: 2.26

[Version("2.26")]
public static extern void SetInterface(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetMember(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_member. Version: 2.26

[Version("2.26")]
public static extern void SetMember(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetMessageType(IntPtr, DBusMessageType)

Calls native method g_dbus_message_set_message_type. Version: 2.26

[Version("2.26")]
public static extern void SetMessageType(IntPtr message, DBusMessageType type)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

type DBusMessageType

Transfer ownership: None Nullable: False

SetNumUnixFds(IntPtr, uint)

Calls native method g_dbus_message_set_num_unix_fds. Version: 2.26

[Version("2.26")]
public static extern void SetNumUnixFds(IntPtr message, uint value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value uint

Transfer ownership: None Nullable: False

SetPath(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_path. Version: 2.26

[Version("2.26")]
public static extern void SetPath(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetReplySerial(IntPtr, uint)

Calls native method g_dbus_message_set_reply_serial. Version: 2.26

[Version("2.26")]
public static extern void SetReplySerial(IntPtr message, uint value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value uint

Transfer ownership: None Nullable: False

SetSender(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_sender. Version: 2.26

[Version("2.26")]
public static extern void SetSender(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetSerial(IntPtr, uint)

Calls native method g_dbus_message_set_serial. Version: 2.26

[Version("2.26")]
public static extern void SetSerial(IntPtr message, uint serial)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

serial uint

Transfer ownership: None Nullable: False

SetSignature(IntPtr, NullableUtf8StringHandle)

Calls native method g_dbus_message_set_signature. Version: 2.26

[Version("2.26")]
public static extern void SetSignature(IntPtr message, NullableUtf8StringHandle value)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

value NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetUnixFdList(IntPtr, IntPtr)

Calls native method g_dbus_message_set_unix_fd_list. Version: 2.26

[Version("2.26")]
public static extern void SetUnixFdList(IntPtr message, IntPtr fdList)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

fdList IntPtr

Transfer ownership: None Nullable: True

ToBlob(IntPtr, out nuint, DBusCapabilityFlags, out ErrorOwnedHandle)

Calls native method g_dbus_message_to_blob. Version: 2.26

[Version("2.26")]
public static extern byte[] ToBlob(IntPtr message, out nuint outSize, DBusCapabilityFlags capabilities, out ErrorOwnedHandle error)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

outSize nuint

Transfer ownership: Full Nullable: False

capabilities DBusCapabilityFlags

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

byte[]

Transfer ownership: Full Nullable: False

ToGerror(IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_message_to_gerror. Version: 2.26

[Version("2.26")]
public static extern bool ToGerror(IntPtr message, out ErrorOwnedHandle error)

Parameters

message IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False