Table of Contents

Class DBusProxy

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

Methods

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

Calls native method g_dbus_proxy_call. Version: 2.26

[Version("2.26")]
public static extern void Call(IntPtr proxy, NonNullableUtf8StringHandle methodName, VariantHandle parameters, DBusCallFlags flags, int timeoutMsec, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

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_proxy_call_finish. Version: 2.26

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

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: False

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

Calls native method g_dbus_proxy_call_sync. Version: 2.26

[Version("2.26")]
public static extern VariantOwnedHandle CallSync(IntPtr proxy, NonNullableUtf8StringHandle methodName, VariantHandle parameters, DBusCallFlags flags, int timeoutMsec, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

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, NonNullableUtf8StringHandle, VariantHandle, DBusCallFlags, int, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_dbus_proxy_call_with_unix_fd_list. Version: 2.30

[Version("2.30")]
public static extern void CallWithUnixFdList(IntPtr proxy, NonNullableUtf8StringHandle methodName, VariantHandle parameters, DBusCallFlags flags, int timeoutMsec, IntPtr fdList, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

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_proxy_call_with_unix_fd_list_finish. Version: 2.30

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

Parameters

proxy 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, NonNullableUtf8StringHandle, VariantHandle, DBusCallFlags, int, IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_dbus_proxy_call_with_unix_fd_list_sync. Version: 2.30

[Version("2.30")]
public static extern VariantOwnedHandle CallWithUnixFdListSync(IntPtr proxy, NonNullableUtf8StringHandle methodName, VariantHandle parameters, DBusCallFlags flags, int timeoutMsec, IntPtr fdList, out IntPtr outFdList, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

methodName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

parameters VariantHandle

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

GetCachedProperty(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_dbus_proxy_get_cached_property. Version: 2.26

[Version("2.26")]
public static extern VariantOwnedHandle GetCachedProperty(IntPtr proxy, NonNullableUtf8StringHandle propertyName)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

VariantOwnedHandle

Transfer ownership: Full Nullable: True

GetCachedPropertyNames(IntPtr)

Calls native method g_dbus_proxy_get_cached_property_names. Version: 2.26

[Version("2.26")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle GetCachedPropertyNames(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: True

GetConnection(IntPtr)

Calls native method g_dbus_proxy_get_connection. Version: 2.26

[Version("2.26")]
public static extern IntPtr GetConnection(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetDefaultTimeout(IntPtr)

Calls native method g_dbus_proxy_get_default_timeout. Version: 2.26

[Version("2.26")]
public static extern int GetDefaultTimeout(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetFlags(IntPtr)

Calls native method g_dbus_proxy_get_flags. Version: 2.26

[Version("2.26")]
public static extern DBusProxyFlags GetFlags(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

DBusProxyFlags

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_dbus_proxy_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInterfaceInfo(IntPtr)

Calls native method g_dbus_proxy_get_interface_info. Version: 2.26

[Version("2.26")]
public static extern DBusInterfaceInfoUnownedHandle GetInterfaceInfo(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

DBusInterfaceInfoUnownedHandle

Transfer ownership: None Nullable: True

GetInterfaceName(IntPtr)

Calls native method g_dbus_proxy_get_interface_name. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetInterfaceName(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetName(IntPtr)

Calls native method g_dbus_proxy_get_name. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringUnownedHandle GetName(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetNameOwner(IntPtr)

Calls native method g_dbus_proxy_get_name_owner. Version: 2.26

[Version("2.26")]
public static extern NullableUtf8StringOwnedHandle GetNameOwner(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetObjectPath(IntPtr)

Calls native method g_dbus_proxy_get_object_path. Version: 2.26

[Version("2.26")]
public static extern NonNullableUtf8StringUnownedHandle GetObjectPath(IntPtr proxy)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

New(IntPtr, DBusProxyFlags, DBusInterfaceInfoHandle, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_dbus_proxy_new. Version: 2.26

[Version("2.26")]
public static extern void New(IntPtr connection, DBusProxyFlags flags, DBusInterfaceInfoHandle info, NullableUtf8StringHandle name, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

flags DBusProxyFlags

Transfer ownership: None Nullable: False

info DBusInterfaceInfoHandle

Transfer ownership: None Nullable: True

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

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

NewFinish(IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_proxy_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

NewForBus(BusType, DBusProxyFlags, DBusInterfaceInfoHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_dbus_proxy_new_for_bus. Version: 2.26

[Version("2.26")]
public static extern void NewForBus(BusType busType, DBusProxyFlags flags, DBusInterfaceInfoHandle info, NonNullableUtf8StringHandle name, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

busType BusType

Transfer ownership: None Nullable: False

flags DBusProxyFlags

Transfer ownership: None Nullable: False

info DBusInterfaceInfoHandle

Transfer ownership: None Nullable: True

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

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

NewForBusFinish(IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_proxy_new_for_bus_finish. Version: 2.26

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

Parameters

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForBusSync(BusType, DBusProxyFlags, DBusInterfaceInfoHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_proxy_new_for_bus_sync. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewForBusSync(BusType busType, DBusProxyFlags flags, DBusInterfaceInfoHandle info, NonNullableUtf8StringHandle name, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

busType BusType

Transfer ownership: None Nullable: False

flags DBusProxyFlags

Transfer ownership: None Nullable: False

info DBusInterfaceInfoHandle

Transfer ownership: None Nullable: True

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewSync(IntPtr, DBusProxyFlags, DBusInterfaceInfoHandle, NullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native constructor g_dbus_proxy_new_sync. Version: 2.26

[Version("2.26")]
public static extern IntPtr NewSync(IntPtr connection, DBusProxyFlags flags, DBusInterfaceInfoHandle info, NullableUtf8StringHandle name, NonNullableUtf8StringHandle objectPath, NonNullableUtf8StringHandle interfaceName, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

connection IntPtr

Transfer ownership: None Nullable: False

flags DBusProxyFlags

Transfer ownership: None Nullable: False

info DBusInterfaceInfoHandle

Transfer ownership: None Nullable: True

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

objectPath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

interfaceName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetCachedProperty(IntPtr, NonNullableUtf8StringHandle, VariantHandle)

Calls native method g_dbus_proxy_set_cached_property. Version: 2.26

[Version("2.26")]
public static extern void SetCachedProperty(IntPtr proxy, NonNullableUtf8StringHandle propertyName, VariantHandle value)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value VariantHandle

Transfer ownership: None Nullable: True

SetDefaultTimeout(IntPtr, int)

Calls native method g_dbus_proxy_set_default_timeout. Version: 2.26

[Version("2.26")]
public static extern void SetDefaultTimeout(IntPtr proxy, int timeoutMsec)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

timeoutMsec int

Transfer ownership: None Nullable: False

SetInterfaceInfo(IntPtr, DBusInterfaceInfoHandle)

Calls native method g_dbus_proxy_set_interface_info. Version: 2.26

[Version("2.26")]
public static extern void SetInterfaceInfo(IntPtr proxy, DBusInterfaceInfoHandle info)

Parameters

proxy IntPtr

Transfer ownership: None Nullable: False

info DBusInterfaceInfoHandle

Transfer ownership: None Nullable: True