Method
MksScreenattach
Declaration [src]
void
mks_screen_attach (
MksScreen* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously creates a GdkPaintable that is updated with the
contents of the screen.
This function registers a new socketpair() which is shared with
the QEMU instance to receive rendering updates. Those updates are
propagated to the resulting GdkPainable which can be retrieved
using mks_screen_attach_finish() from callback.
This method completes asynchronously. Use mks_screen_attach_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto execute upon completion.The argument can be NULL. user_data-
Type:
gpointerClosure data for
callback.The argument can be NULL.The data is owned by the caller of the method.