Table of Contents

Class DBusConnection

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

Methods

AddFilter(nint, DBusMessageFilterFunction, nint, DestroyNotify)

Calls native method g_dbus_connection_add_filter. Version: 2.26

[Version("2.26")]
public static extern uint AddFilter(nint connection, DBusMessageFilterFunction filterFunction, nint userData, DestroyNotify userDataFreeFunc)

Parameters

connection nint

Transfer ownership: None Nullable: False

filterFunction DBusMessageFilterFunction

Transfer ownership: None Nullable: False

userData nint

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

Call(nint, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, nint, AsyncReadyCallback, nint)

Calls native method g_dbus_connection_call. Version: 2.26

[Version("2.26")]
public static extern void Call(nint connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

connection nint

Transfer ownership: None Nullable: False

busName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

Transfer ownership: None Nullable: True

replyType VariantTypeHandle

Transfer ownership: None Nullable: True

flags DBusCallFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

CallFinish(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_call_finish. Version: 2.26

[Version("2.26")]
public static extern VariantOwnedHandle CallFinish(nint connection, nint res, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

CallSync(nint, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_call_sync. Version: 2.26

[Version("2.26")]
public static extern VariantOwnedHandle CallSync(nint connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, nint cancellable, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

busName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

Transfer ownership: None Nullable: True

replyType VariantTypeHandle

Transfer ownership: None Nullable: True

flags DBusCallFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

CallWithUnixFdList(nint, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, nint, nint, AsyncReadyCallback, nint)

Calls native method g_dbus_connection_call_with_unix_fd_list. Version: 2.30

[Version("2.30")]
public static extern void CallWithUnixFdList(nint connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, nint fdList, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

connection nint

Transfer ownership: None Nullable: False

busName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

Transfer ownership: None Nullable: True

replyType VariantTypeHandle

Transfer ownership: None Nullable: True

flags DBusCallFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

fdList nint

Transfer ownership: None Nullable: True

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

CallWithUnixFdListFinish(nint, out nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_call_with_unix_fd_list_finish. Version: 2.30

[Version("2.30")]
public static extern VariantOwnedHandle CallWithUnixFdListFinish(nint connection, out nint outFdList, nint res, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

outFdList nint

Transfer ownership: Full Nullable: False

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

CallWithUnixFdListSync(nint, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, nint, out nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_call_with_unix_fd_list_sync. Version: 2.30

[Version("2.30")]
public static extern VariantOwnedHandle CallWithUnixFdListSync(nint connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, nint fdList, out nint outFdList, nint cancellable, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

busName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

Transfer ownership: None Nullable: True

replyType VariantTypeHandle

Transfer ownership: None Nullable: True

flags DBusCallFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

fdList nint

Transfer ownership: None Nullable: True

outFdList nint

Transfer ownership: Full Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

Close(nint, nint, AsyncReadyCallback, nint)

Calls native method g_dbus_connection_close. Version: 2.26

[Version("2.26")]
public static extern void Close(nint connection, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

connection nint

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

CloseFinish(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_close_finish. Version: 2.26

[Version("2.26")]
public static extern bool CloseFinish(nint connection, nint res, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CloseSync(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_close_sync. Version: 2.26

[Version("2.26")]
public static extern bool CloseSync(nint connection, nint cancellable, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EmitSignal(nint, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, out ErrorOwnedHandle)

Calls native method g_dbus_connection_emit_signal. Version: 2.26

[Version("2.26")]
public static extern bool EmitSignal(nint connection, NullableUtf8StringHandle destinationBusName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle signalName, VariantHandle parameters, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

destinationBusName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

signalName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ExportActionGroup(nint, NonNullableUtf8StringHandle, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_export_action_group. Version: 2.32

[Version("2.32")]
public static extern uint ExportActionGroup(nint connection, NonNullableUtf8StringHandle objectPath, nint actionGroup, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

actionGroup nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

ExportMenuModel(nint, NonNullableUtf8StringHandle, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_export_menu_model. Version: 2.32

[Version("2.32")]
public static extern uint ExportMenuModel(nint connection, NonNullableUtf8StringHandle objectPath, nint menu, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

menu nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

Flush(nint, nint, AsyncReadyCallback, nint)

Calls native method g_dbus_connection_flush. Version: 2.26

[Version("2.26")]
public static extern void Flush(nint connection, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

connection nint

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

FlushFinish(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_flush_finish. Version: 2.26

[Version("2.26")]
public static extern bool FlushFinish(nint connection, nint res, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

FlushSync(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_flush_sync. Version: 2.26

[Version("2.26")]
public static extern bool FlushSync(nint connection, nint cancellable, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetCapabilities(nint)

Calls native method g_dbus_connection_get_capabilities. Version: 2.26

[Version("2.26")]
public static extern DBusCapabilityFlags GetCapabilities(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

DBusCapabilityFlags

Transfer ownership: None Nullable: False

GetExitOnClose(nint)

Calls native method g_dbus_connection_get_exit_on_close. Version: 2.26

[Version("2.26")]
public static extern bool GetExitOnClose(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetFlags(nint)

Calls native method g_dbus_connection_get_flags. Version: 2.60

[Version("2.60")]
public static extern DBusConnectionFlags GetFlags(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

DBusConnectionFlags

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_dbus_connection_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGuid(nint)

Calls native method g_dbus_connection_get_guid. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetGuid(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetLastSerial(nint)

Calls native method g_dbus_connection_get_last_serial. Version: 2.34

[Version("2.34")]
public static extern uint GetLastSerial(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetPeerCredentials(nint)

Calls native method g_dbus_connection_get_peer_credentials. Version: 2.26

[Version("2.26")]
public static extern nint GetPeerCredentials(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetStream(nint)

Calls native method g_dbus_connection_get_stream. Version: 2.26

[Version("2.26")]
public static extern nint GetStream(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: False

GetUniqueName(nint)

Calls native method g_dbus_connection_get_unique_name. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetUniqueName(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

IsClosed(nint)

Calls native method g_dbus_connection_is_closed. Version: 2.26

[Version("2.26")]
public static extern bool IsClosed(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New(nint, NullableUtf8StringHandle, DBusConnectionFlags, nint, nint, AsyncReadyCallback, nint)

Calls native function g_dbus_connection_new. Version: 2.26

[Version("2.26")]
public static extern void New(nint stream, NullableUtf8StringHandle guid, DBusConnectionFlags flags, nint observer, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

stream nint

Transfer ownership: None Nullable: False

guid NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer nint

Transfer ownership: None Nullable: True

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

NewFinish(nint, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_finish. Version: 2.26

[Version("2.26")]
public static extern nint NewFinish(nint res, out ErrorOwnedHandle error)

Parameters

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

NewForAddress(NonNullableUtf8StringHandle, DBusConnectionFlags, nint, nint, AsyncReadyCallback, nint)

Calls native function g_dbus_connection_new_for_address. Version: 2.26

[Version("2.26")]
public static extern void NewForAddress(NonNullableUtf8StringHandle address, DBusConnectionFlags flags, nint observer, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

address NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer nint

Transfer ownership: None Nullable: True

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

NewForAddressFinish(nint, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_for_address_finish. Version: 2.26

[Version("2.26")]
public static extern nint NewForAddressFinish(nint res, out ErrorOwnedHandle error)

Parameters

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

NewForAddressSync(NonNullableUtf8StringHandle, DBusConnectionFlags, nint, nint, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_for_address_sync. Version: 2.26

[Version("2.26")]
public static extern nint NewForAddressSync(NonNullableUtf8StringHandle address, DBusConnectionFlags flags, nint observer, nint cancellable, out ErrorOwnedHandle error)

Parameters

address NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer nint

Transfer ownership: None Nullable: True

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

NewSync(nint, NullableUtf8StringHandle, DBusConnectionFlags, nint, nint, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_sync. Version: 2.26

[Version("2.26")]
public static extern nint NewSync(nint stream, NullableUtf8StringHandle guid, DBusConnectionFlags flags, nint observer, nint cancellable, out ErrorOwnedHandle error)

Parameters

stream nint

Transfer ownership: None Nullable: False

guid NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer nint

Transfer ownership: None Nullable: True

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

RegisterObject(nint, NonNullableUtf8StringHandle, DBusInterfaceInfoHandle, ClosureHandle, ClosureHandle, ClosureHandle, out ErrorOwnedHandle)

Calls native method g_dbus_connection_register_object_with_closures. Version: 2.46

[Version("2.46")]
public static extern uint RegisterObject(nint connection, NonNullableUtf8StringHandle objectPath, DBusInterfaceInfoHandle interfaceInfo, ClosureHandle methodCallClosure, ClosureHandle getPropertyClosure, ClosureHandle setPropertyClosure, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceInfo DBusInterfaceInfoHandle

Transfer ownership: None Nullable: False

methodCallClosure ClosureHandle

Transfer ownership: None Nullable: True

getPropertyClosure ClosureHandle

Transfer ownership: None Nullable: True

setPropertyClosure ClosureHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

RegisterObject(nint, NonNullableUtf8StringHandle, DBusInterfaceInfoHandle, DBusInterfaceVTableHandle, nint, DestroyNotify, out ErrorOwnedHandle)

Calls native method g_dbus_connection_register_object. Version: 2.26

[Version("2.26")]
public static extern uint RegisterObject(nint connection, NonNullableUtf8StringHandle objectPath, DBusInterfaceInfoHandle interfaceInfo, DBusInterfaceVTableHandle vtable, nint userData, DestroyNotify userDataFreeFunc, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceInfo DBusInterfaceInfoHandle

Transfer ownership: None Nullable: False

vtable DBusInterfaceVTableHandle

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

RegisterSubtree(nint, NonNullableUtf8StringHandle, DBusSubtreeVTableHandle, DBusSubtreeFlags, nint, DestroyNotify, out ErrorOwnedHandle)

Calls native method g_dbus_connection_register_subtree. Version: 2.26

[Version("2.26")]
public static extern uint RegisterSubtree(nint connection, NonNullableUtf8StringHandle objectPath, DBusSubtreeVTableHandle vtable, DBusSubtreeFlags flags, nint userData, DestroyNotify userDataFreeFunc, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

vtable DBusSubtreeVTableHandle

Transfer ownership: None Nullable: False

flags DBusSubtreeFlags

Transfer ownership: None Nullable: False

userData nint

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

RemoveFilter(nint, uint)

Calls native method g_dbus_connection_remove_filter. Version: 2.26

[Version("2.26")]
public static extern void RemoveFilter(nint connection, uint filterId)

Parameters

connection nint

Transfer ownership: None Nullable: False

filterId uint

Transfer ownership: None Nullable: False

SendMessage(nint, nint, DBusSendMessageFlags, out uint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_send_message. Version: 2.26

[Version("2.26")]
public static extern bool SendMessage(nint connection, nint message, DBusSendMessageFlags flags, out uint outSerial, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

message nint

Transfer ownership: None Nullable: False

flags DBusSendMessageFlags

Transfer ownership: None Nullable: False

outSerial uint

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SendMessageWithReply(nint, nint, DBusSendMessageFlags, int, out uint, nint, AsyncReadyCallback, nint)

Calls native method g_dbus_connection_send_message_with_reply. Version: 2.26

[Version("2.26")]
public static extern void SendMessageWithReply(nint connection, nint message, DBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

connection nint

Transfer ownership: None Nullable: False

message nint

Transfer ownership: None Nullable: False

flags DBusSendMessageFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

outSerial uint

Transfer ownership: Full Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

SendMessageWithReplyFinish(nint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_send_message_with_reply_finish. Version: 2.26

[Version("2.26")]
public static extern nint SendMessageWithReplyFinish(nint connection, nint res, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

res nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

SendMessageWithReplySync(nint, nint, DBusSendMessageFlags, int, out uint, nint, out ErrorOwnedHandle)

Calls native method g_dbus_connection_send_message_with_reply_sync. Version: 2.26

[Version("2.26")]
public static extern nint SendMessageWithReplySync(nint connection, nint message, DBusSendMessageFlags flags, int timeoutMsec, out uint outSerial, nint cancellable, out ErrorOwnedHandle error)

Parameters

connection nint

Transfer ownership: None Nullable: False

message nint

Transfer ownership: None Nullable: False

flags DBusSendMessageFlags

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

outSerial uint

Transfer ownership: Full Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

nint

Transfer ownership: Full Nullable: False

SetExitOnClose(nint, bool)

Calls native method g_dbus_connection_set_exit_on_close. Version: 2.26

[Version("2.26")]
public static extern void SetExitOnClose(nint connection, bool exitOnClose)

Parameters

connection nint

Transfer ownership: None Nullable: False

exitOnClose bool

Transfer ownership: None Nullable: False

SignalSubscribe(nint, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, DBusSignalFlags, DBusSignalCallback, nint, DestroyNotify)

Calls native method g_dbus_connection_signal_subscribe. Version: 2.26

[Version("2.26")]
public static extern uint SignalSubscribe(nint connection, NullableUtf8StringHandle sender, NullableUtf8StringHandle interfaceName, NullableUtf8StringHandle member, NullableUtf8StringHandle objectPath, NullableUtf8StringHandle arg0, DBusSignalFlags flags, DBusSignalCallback callback, nint userData, DestroyNotify userDataFreeFunc)

Parameters

connection nint

Transfer ownership: None Nullable: False

sender NullableUtf8StringHandle

Transfer ownership: None Nullable: True

interfaceName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

member NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NullableUtf8StringHandle

Transfer ownership: None Nullable: True

arg0 NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags DBusSignalFlags

Transfer ownership: None Nullable: False

callback DBusSignalCallback

Transfer ownership: None Nullable: False

userData nint

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

SignalUnsubscribe(nint, uint)

Calls native method g_dbus_connection_signal_unsubscribe. Version: 2.26

[Version("2.26")]
public static extern void SignalUnsubscribe(nint connection, uint subscriptionId)

Parameters

connection nint

Transfer ownership: None Nullable: False

subscriptionId uint

Transfer ownership: None Nullable: False

StartMessageProcessing(nint)

Calls native method g_dbus_connection_start_message_processing. Version: 2.26

[Version("2.26")]
public static extern void StartMessageProcessing(nint connection)

Parameters

connection nint

Transfer ownership: None Nullable: False

UnexportActionGroup(nint, uint)

Calls native method g_dbus_connection_unexport_action_group. Version: 2.32

[Version("2.32")]
public static extern void UnexportActionGroup(nint connection, uint exportId)

Parameters

connection nint

Transfer ownership: None Nullable: False

exportId uint

Transfer ownership: None Nullable: False

UnexportMenuModel(nint, uint)

Calls native method g_dbus_connection_unexport_menu_model. Version: 2.32

[Version("2.32")]
public static extern void UnexportMenuModel(nint connection, uint exportId)

Parameters

connection nint

Transfer ownership: None Nullable: False

exportId uint

Transfer ownership: None Nullable: False

UnregisterObject(nint, uint)

Calls native method g_dbus_connection_unregister_object. Version: 2.26

[Version("2.26")]
public static extern bool UnregisterObject(nint connection, uint registrationId)

Parameters

connection nint

Transfer ownership: None Nullable: False

registrationId uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

UnregisterSubtree(nint, uint)

Calls native method g_dbus_connection_unregister_subtree. Version: 2.26

[Version("2.26")]
public static extern bool UnregisterSubtree(nint connection, uint registrationId)

Parameters

connection nint

Transfer ownership: None Nullable: False

registrationId uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False