vdagent: Fix udscs_read_callback memory ownership bug
[vd_agent.git] / src / vdagentd-proto.h
blob981548811cf9c9c86a4a73dd1332bd17b4971db4
1 /* vdagentd-proto.h header file for the protocol over the unix domain socket
2 between the vdagent process / xorg-client and the vdagentd (daemon).
4 Copyright 2010-2013 Red Hat, Inc.
6 Red Hat Authors:
7 Hans de Goede <hdegoede@redhat.com>
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __VDAGENTD_PROTO_H
24 #define __VDAGENTD_PROTO_H
26 #define VDAGENTD_SOCKET "/var/run/spice-vdagentd/spice-vdagent-sock"
28 enum {
29 VDAGENTD_GUEST_XORG_RESOLUTION, /* client -> daemon, arg1: overall width,
30 arg2: overall height, data: array of
31 vdagentd_guest_xorg_resolution */
32 VDAGENTD_MONITORS_CONFIG, /* daemon -> client, VDAgentMonitorsConfig
33 followed by num_monitors VDAgentMonConfig-s */
34 VDAGENTD_CLIPBOARD_GRAB, /* arg1: sel, data: array of supported types */
35 VDAGENTD_CLIPBOARD_REQUEST, /* arg1: selection, arg 2 = type */
36 VDAGENTD_CLIPBOARD_DATA, /* arg1: sel, arg 2: type, data: data */
37 VDAGENTD_CLIPBOARD_RELEASE, /* arg1: selection */
38 VDAGENTD_VERSION, /* daemon -> client, data: version string */
39 VDAGENTD_AUDIO_VOLUME_SYNC,
40 VDAGENTD_FILE_XFER_START,
41 VDAGENTD_FILE_XFER_STATUS,
42 VDAGENTD_FILE_XFER_DATA,
43 VDAGENTD_FILE_XFER_DISABLE,
44 VDAGENTD_CLIENT_DISCONNECTED, /* daemon -> client */
45 VDAGENTD_NO_MESSAGES /* Must always be last */
48 struct vdagentd_guest_xorg_resolution {
49 int width;
50 int height;
51 int x;
52 int y;
55 #endif