DBusObjectManagerClient.newObjectManagerClient

Asynchronously creates a new GDBusObjectManagerClient object.

This is an asynchronous failable constructor. When the result is ready, callback will be invoked in the [thread-default main context][g-main-context-push-thread-default] of the thread you are calling this method from. You can then call g_dbus_object_manager_client_new_finish() to get the result. See g_dbus_object_manager_client_new_sync() for the synchronous version.

class DBusObjectManagerClient
static
void
newObjectManagerClient
(
DBusConnection connection
,
GDBusObjectManagerClientFlags flags
,
string name
,
string objectPath
,
GDBusProxyTypeFunc getProxyTypeFunc
,,,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

connection
Type: DBusConnection
flags
Type: GDBusObjectManagerClientFlags

Zero or more flags from the GDBusObjectManagerClientFlags enumeration.

name
Type: string

The owner of the control object (unique or well-known name).

objectPath
Type: string

The object path of the control object.

getProxyTypeFunc
Type: GDBusProxyTypeFunc

A GDBusProxyTypeFunc function or NULL to always construct GDBusProxy proxies.

getProxyTypeUserData
Type: void*

User data to pass to get_proxy_type_func.

getProxyTypeDestroyNotify
Type: GDestroyNotify

Free function for get_proxy_type_user_data or NULL.

cancellable
Type: Cancellable

A GCancellable or NULL

callback
Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

userData
Type: void*

The data to pass to callback.

Meta

Since

2.30