Table of Contents

Class DBusConnection

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

Methods

AddFilter(IntPtr, DBusMessageFilterFunction, IntPtr, DestroyNotify)

Calls native method g_dbus_connection_add_filter. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

filterFunction DBusMessageFilterFunction

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

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

Calls native method g_dbus_connection_call. Version: 2.26

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CallFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_call_finish. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

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

Calls native method g_dbus_connection_call_sync. Version: 2.26

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

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

Calls native method g_dbus_connection_call_with_unix_fd_list. Version: 2.30

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CallWithUnixFdListFinish(IntPtr, out IntPtr, IntPtr, 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(IntPtr connection, out IntPtr outFdList, IntPtr res, out ErrorOwnedHandle error)

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

outFdList IntPtr

Transfer ownership: Full Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

CallWithUnixFdListSync(IntPtr, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, VariantHandle, VariantTypeHandle, DBusCallFlags, int, IntPtr, out IntPtr, IntPtr, 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(IntPtr connection, NullableUtf8StringHandle busName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle methodName, VariantHandle parameters, VariantTypeHandle replyType, DBusCallFlags flags, int timeoutMsec, IntPtr fdList, out IntPtr outFdList, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

outFdList IntPtr

Transfer ownership: Full Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

Close(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dbus_connection_close. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CloseFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_close_finish. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CloseSync(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_close_sync. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EmitSignal(IntPtr, 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(IntPtr connection, NullableUtf8StringHandle destinationBusName, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, NonNullableUtf8StringHandle signalName, VariantHandle parameters, out ErrorOwnedHandle error)

Parameters

connection IntPtr

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(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_export_action_group. Version: 2.32

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

actionGroup IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

ExportMenuModel(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_export_menu_model. Version: 2.32

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

menu IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

Flush(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dbus_connection_flush. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

FlushFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_flush_finish. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

FlushSync(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_flush_sync. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetCapabilities(IntPtr)

Calls native method g_dbus_connection_get_capabilities. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

DBusCapabilityFlags

Transfer ownership: None Nullable: False

GetExitOnClose(IntPtr)

Calls native method g_dbus_connection_get_exit_on_close. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetFlags(IntPtr)

Calls native method g_dbus_connection_get_flags. Version: 2.60

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

Parameters

connection IntPtr

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(IntPtr)

Calls native method g_dbus_connection_get_guid. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetLastSerial(IntPtr)

Calls native method g_dbus_connection_get_last_serial. Version: 2.34

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetPeerCredentials(IntPtr)

Calls native method g_dbus_connection_get_peer_credentials. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetStream(IntPtr)

Calls native method g_dbus_connection_get_stream. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetUniqueName(IntPtr)

Calls native method g_dbus_connection_get_unique_name. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

IsClosed(IntPtr)

Calls native method g_dbus_connection_is_closed. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New(IntPtr, NullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_dbus_connection_new. Version: 2.26

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

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

guid NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewFinish(IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_finish. Version: 2.26

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

Parameters

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForAddress(NonNullableUtf8StringHandle, DBusConnectionFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_dbus_connection_new_for_address. Version: 2.26

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

Parameters

address NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewForAddressFinish(IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_connection_new_for_address_finish. Version: 2.26

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

Parameters

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

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

Calls native constructor g_dbus_connection_new_for_address_sync. Version: 2.26

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

Parameters

address NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

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

Calls native constructor g_dbus_connection_new_sync. Version: 2.26

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

Parameters

stream IntPtr

Transfer ownership: None Nullable: False

guid NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags DBusConnectionFlags

Transfer ownership: None Nullable: False

observer IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

RegisterObject(IntPtr, 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(IntPtr connection, NonNullableUtf8StringHandle objectPath, DBusInterfaceInfoHandle interfaceInfo, ClosureHandle methodCallClosure, ClosureHandle getPropertyClosure, ClosureHandle setPropertyClosure, out ErrorOwnedHandle error)

Parameters

connection IntPtr

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(IntPtr, NonNullableUtf8StringHandle, DBusInterfaceInfoHandle, DBusInterfaceVTableHandle, IntPtr, DestroyNotify, out ErrorOwnedHandle)

Calls native method g_dbus_connection_register_object. Version: 2.26

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

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

Calls native method g_dbus_connection_register_subtree. Version: 2.26

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

uint

Transfer ownership: None Nullable: False

RemoveFilter(IntPtr, uint)

Calls native method g_dbus_connection_remove_filter. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

filterId uint

Transfer ownership: None Nullable: False

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

Calls native method g_dbus_connection_send_message. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

message IntPtr

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(IntPtr, IntPtr, DBusSendMessageFlags, int, out uint, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dbus_connection_send_message_with_reply. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

message IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SendMessageWithReplyFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_connection_send_message_with_reply_finish. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

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

Calls native method g_dbus_connection_send_message_with_reply_sync. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

message IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetExitOnClose(IntPtr, bool)

Calls native method g_dbus_connection_set_exit_on_close. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

exitOnClose bool

Transfer ownership: None Nullable: False

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

Calls native method g_dbus_connection_signal_subscribe. Version: 2.26

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

Parameters

connection IntPtr

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 IntPtr

Transfer ownership: None Nullable: True

userDataFreeFunc DestroyNotify

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

SignalUnsubscribe(IntPtr, uint)

Calls native method g_dbus_connection_signal_unsubscribe. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

subscriptionId uint

Transfer ownership: None Nullable: False

StartMessageProcessing(IntPtr)

Calls native method g_dbus_connection_start_message_processing. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

UnexportActionGroup(IntPtr, uint)

Calls native method g_dbus_connection_unexport_action_group. Version: 2.32

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

exportId uint

Transfer ownership: None Nullable: False

UnexportMenuModel(IntPtr, uint)

Calls native method g_dbus_connection_unexport_menu_model. Version: 2.32

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

exportId uint

Transfer ownership: None Nullable: False

UnregisterObject(IntPtr, uint)

Calls native method g_dbus_connection_unregister_object. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

registrationId uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

UnregisterSubtree(IntPtr, uint)

Calls native method g_dbus_connection_unregister_subtree. Version: 2.26

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

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

registrationId uint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False