Function
PhoshDBusScreenSaverProxynew
Declaration [src]
void
phosh_dbus_screen_saver_proxy_new (
GDBusConnection* connection,
GDBusProxyFlags flags,
const gchar* name,
const gchar* object_path,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously creates a proxy for the D-Bus interface org.gnome.ScreenSaver. See g_dbus_proxy_new()
for more details.
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_dbus_screen_saver_proxy_new_finish()
to get the result of the operation.
See phosh_dbus_screen_saver_proxy_new_sync()
for the synchronous, blocking version of this constructor.
Parameters
connection |
GDBusConnection |
A |
|
The data is owned by the caller of the function. | |
flags |
GDBusProxyFlags |
Flags from the |
|
name |
const gchar* |
A bus name (well-known or unique) or |
|
The argument can be NULL . | |
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 |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A |
|
user_data |
gpointer |
User data to pass to |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |