Function

PhoshIdleDBusObjectManagerClientnew_for_bus

Declaration [src]

void
phosh_idle_dbus_object_manager_client_new_for_bus (
  GBusType bus_type,
  GDBusObjectManagerClientFlags flags,
  const gchar* name,
  const gchar* object_path,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Like phosh_idle_dbus_object_manager_client_new() but takes a GBusType instead of a GDBusConnection.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call phosh_idle_dbus_object_manager_client_new_for_bus_finish() to get the result of the operation.

See phosh_idle_dbus_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.

Parameters

bus_type GBusType
 

A GBusType.

flags GDBusObjectManagerClientFlags
 

Flags from the GDBusObjectManagerClientFlags enumeration.

name const gchar*
 

A bus name (well-known or unique).

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
object_path const gchar*
 

An object path.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
cancellable GCancellable
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A GAsyncReadyCallback to call when the request is satisfied.

user_data gpointer
 

User data to pass to callback.

 The argument can be NULL.
 The data is owned by the caller of the function.