@ -661,7 +661,7 @@ clipboard_data_source_unref(struct rdp_clipboard_data_source *source)
struct rdp_backend * b = ctx - > rdpBackend ;
char * * p ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
assert ( source - > refcount ) ;
source - > refcount - - ;
@ -764,7 +764,7 @@ clipboard_data_source_read(int fd, uint32_t mask, void *arg)
__func__ , source ,
clipboard_data_source_state_to_string ( source ) , fd ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
assert ( source - > data_source_fd = = fd ) ;
assert ( source - > refcount = = 1 ) ;
@ -832,7 +832,7 @@ clipboard_data_source_fail(int fd, uint32_t mask, void *arg)
rdp_debug_clipboard_verbose ( b , " RDP %s (%p:%s) fd:%d \n " , __func__ ,
source , clipboard_data_source_state_to_string ( source ) , fd ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
assert ( source - > data_source_fd = = fd ) ;
/* this data source must be tracked as inflight */
@ -886,7 +886,7 @@ clipboard_data_source_write(int fd, uint32_t mask, void *arg)
clipboard_data_source_state_to_string ( source ) ,
fd ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
assert ( source - > data_source_fd = = fd ) ;
/* this data source must be tracked as inflight */
@ -1018,7 +1018,7 @@ clipboard_data_source_send(struct weston_data_source *base,
clipboard_data_source_state_to_string ( source ) ,
fd , mime_type ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
if ( ctx - > clipboard_inflight_client_data_source ) {
/* Here means server side (Linux application) request clipboard data,
@ -1134,7 +1134,7 @@ clipboard_data_source_cancel(struct weston_data_source *base)
__func__ , source ,
clipboard_data_source_state_to_string ( source ) ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
if ( source = = ctx - > clipboard_inflight_client_data_source ) {
source - > is_canceled = true ;
@ -1185,7 +1185,7 @@ clipboard_data_source_publish(bool freeOnly, void *arg)
rdp_debug_clipboard ( b , " RDP %s (%p:%s) \n " ,
__func__ , source , clipboard_data_source_state_to_string ( source ) ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
/* here is going to publish new data, if previous data from client is still referenced,
unref it after selection */
@ -1225,7 +1225,7 @@ clipboard_data_source_request(bool freeOnly, void *arg)
bool found_requested_format ;
bool ret ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
if ( freeOnly )
goto error_exit_free_request ;
@ -1331,7 +1331,7 @@ clipboard_set_selection(struct wl_listener *listener, void *data)
rdp_debug_clipboard ( b , " RDP %s (base:%p) \n " , __func__ , selection_data_source ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
if ( selection_data_source = = NULL ) {
return ;
@ -1450,7 +1450,7 @@ clipboard_client_format_list(CliprdrServerContext *context, const CLIPRDR_FORMAT
struct rdp_clipboard_data_source * source = NULL ;
char * * p , * s ;
ASSERT_NOT_COMPOSITOR_THREAD ( b ) ;
assert_not_compositor_thread ( b ) ;
rdp_debug_clipboard ( b , " Client: %s clipboard format list: numFormats:%d \n " , __func__ , formatList - > numFormats ) ;
for ( uint32_t i = 0 ; i < formatList - > numFormats ; i + + ) {
@ -1548,7 +1548,7 @@ clipboard_client_format_data_response(CliprdrServerContext *context, const CLIPR
formatDataResponse - > msgFlags ,
formatDataResponse - > dataLen ) ;
ASSERT_NOT_COMPOSITOR_THREAD ( b ) ;
assert_not_compositor_thread ( b ) ;
if ( ! source ) {
rdp_debug_clipboard ( b , " Client: %s client send data without server asking. protocol error " , __func__ ) ;
@ -1612,7 +1612,7 @@ clipboard_client_format_list_response(CliprdrServerContext *context,
struct rdp_backend * b = ctx - > rdpBackend ;
rdp_debug_clipboard ( b , " Client: %s msgFlags:0x%x \n " , __func__ , formatListResponse - > msgFlags ) ;
ASSERT_NOT_COMPOSITOR_THREAD ( b ) ;
assert_not_compositor_thread ( b ) ;
return 0 ;
}
@ -1631,7 +1631,7 @@ clipboard_client_format_data_request(CliprdrServerContext *context,
__func__ , formatDataRequest - > requestedFormatId ,
clipboard_format_id_to_string ( formatDataRequest - > requestedFormatId , true ) ) ;
ASSERT_NOT_COMPOSITOR_THREAD ( b ) ;
assert_not_compositor_thread ( b ) ;
/* Make sure clients requested the format we knew */
index = clipboard_find_supported_format_by_format_id ( formatDataRequest - > requestedFormatId ) ;
@ -1671,7 +1671,7 @@ rdp_clipboard_init(freerdp_peer *client)
assert ( seat ) ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
ctx - > clipboard_server_context = cliprdr_server_context_new ( ctx - > vcm ) ;
if ( ! ctx - > clipboard_server_context )
@ -1717,7 +1717,7 @@ rdp_clipboard_destroy(RdpPeerContext *ctx)
struct rdp_clipboard_data_source * data_source ;
struct rdp_backend * b = ctx - > rdpBackend ;
ASSERT_COMPOSITOR_THREAD ( b ) ;
assert_compositor_thread ( b ) ;
if ( ctx - > clipboard_selection_listener . notify ) {
wl_list_remove ( & ctx - > clipboard_selection_listener . link ) ;