1 /* x11.h vdagent x11 code header file
3 Copyright 2010 - 2016 Red Hat, Inc.
6 Hans de Goede <hdegoede@redhat.com>
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __VDAGENT_X11_H
23 #define __VDAGENT_X11_H
26 #include <spice/vd_agent.h>
31 struct vdagent_x11
*vdagent_x11_create(UdscsConnection
*vdagentd
,
33 void vdagent_x11_destroy(struct vdagent_x11
*x11
, int vdagentd_disconnected
);
35 int vdagent_x11_get_fd(struct vdagent_x11
*x11
);
36 void vdagent_x11_do_read(struct vdagent_x11
*x11
);
38 void vdagent_x11_set_monitor_config(struct vdagent_x11
*x11
,
39 VDAgentMonitorsConfig
*mon_config
, int fallback
);
41 #ifndef USE_GTK_FOR_CLIPBOARD
42 void vdagent_x11_clipboard_grab(struct vdagent_x11
*x11
, uint8_t selection
,
43 uint32_t *types
, uint32_t type_count
);
44 void vdagent_x11_clipboard_request(struct vdagent_x11
*x11
,
45 uint8_t selection
, uint32_t type
);
46 void vdagent_x11_clipboard_data(struct vdagent_x11
*x11
, uint8_t selection
,
47 uint32_t type
, uint8_t *data
, uint32_t size
);
48 void vdagent_x11_clipboard_release(struct vdagent_x11
*x11
, uint8_t selection
);
50 void vdagent_x11_client_disconnected(struct vdagent_x11
*x11
);
53 gchar
*vdagent_x11_get_wm_name(struct vdagent_x11
*x11
);
55 void vdagent_x11_handle_device_display_info(struct vdagent_x11
*x11
,
56 VDAgentDeviceDisplayInfo
*device_display_info
,
57 gboolean has_virtual_zero_display
);