Method
WPEPlatformScreenSyncObserverset_callback
Declaration [src]
void
wpe_screen_sync_observer_set_callback (
WPEScreenSyncObserver* observer,
WPEScreenSyncObserverSyncFunc sync_func,
gpointer user_data,
GDestroyNotify destroy_notify
)
Description [src]
Add a sync_func to be called from a secondary thread when the screen sync is triggered.
The callback must be set only once and before calling wpe_screen_sync_start().
Parameters
sync_func-
Type:
WPEScreenSyncObserverSyncFuncA
WPEScreenSyncObserverSyncFunc. user_data-
Type:
gpointerData to pass to
sync_func.The argument can be NULL.The data is owned by the caller of the function. destroy_notify-
Type:
GDestroyNotifyFunction for freeing
user_dataorNULL.The argument can be NULL.