Lines Matching refs:sh_data
121 struct screenshooter_data *sh_data = data; in screenshot_done() local
122 sh_data->buffer_copy_done = 1; in screenshot_done()
134 struct screenshooter_data *sh_data = data; in handle_global() local
140 wl_list_insert(&sh_data->output_list, &output->link); in handle_global()
143 sh_data->shm = wl_registry_bind(registry, name, &wl_shm_interface, 1); in handle_global()
145 sh_data->screenshooter = wl_registry_bind(registry, name, in handle_global()
285 struct screenshooter_data sh_data = {}; in main() local
294 wl_list_init(&sh_data.output_list); in main()
296 wl_registry_add_listener(registry, ®istry_listener, &sh_data); in main()
299 if (sh_data.screenshooter == NULL) { in main()
304 weston_screenshooter_add_listener(sh_data.screenshooter, in main()
306 &sh_data); in main()
308 if (screenshot_set_buffer_size(&buff_size, &sh_data.output_list)) in main()
312 wl_list_for_each(output, &sh_data.output_list, link) { in main()
317 sh_data.shm); in main()
318 weston_screenshooter_shoot(sh_data.screenshooter, in main()
321 sh_data.buffer_copy_done = 0; in main()
322 while (!sh_data.buffer_copy_done) in main()
326 screenshot_write_png(&buff_size, &sh_data.output_list); in main()