vdagentd-proto.h 2.24 KB
Newer Older
1 2 3
/*  vdagentd-proto.h header file for the protocol over the unix domain socket
    between the vdagent process / xorg-client and the vdagentd (daemon).

4
    Copyright 2010-2013 Red Hat, Inc.
5 6 7 8 9 10

    Red Hat Authors:
    Hans de Goede <hdegoede@redhat.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
Victor Toso's avatar
Victor Toso committed
11
    the Free Software Foundation, either version 3 of the License, or
12 13 14
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
Victor Toso's avatar
Victor Toso committed
15 16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 18 19 20 21 22 23 24 25
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __VDAGENTD_PROTO_H
#define __VDAGENTD_PROTO_H

26
#define VDAGENTD_SOCKET "/run/spice-vdagentd/spice-vdagent-sock"
27

28 29
#define DEFAULT_VIRTIO_PORT_PATH "/dev/virtio-ports/com.redhat.spice.0"

30
enum {
31 32 33
    VDAGENTD_GUEST_XORG_RESOLUTION, /* client -> daemon, arg1: overall width,
                                       arg2: overall height, data: array of
                                       vdagentd_guest_xorg_resolution */
34 35
    VDAGENTD_MONITORS_CONFIG, /* daemon -> client, VDAgentMonitorsConfig
                                 followed by num_monitors VDAgentMonConfig-s */
36 37 38 39
    VDAGENTD_CLIPBOARD_GRAB,    /* arg1: sel, data: array of supported types */
    VDAGENTD_CLIPBOARD_REQUEST, /* arg1: selection, arg 2 = type */
    VDAGENTD_CLIPBOARD_DATA,    /* arg1: sel, arg 2: type, data: data */
    VDAGENTD_CLIPBOARD_RELEASE, /* arg1: selection */
40
    VDAGENTD_VERSION,           /* daemon -> client, data: version string */
41
    VDAGENTD_AUDIO_VOLUME_SYNC,
42 43 44
    VDAGENTD_FILE_XFER_START,
    VDAGENTD_FILE_XFER_STATUS,
    VDAGENTD_FILE_XFER_DATA,
45
    VDAGENTD_FILE_XFER_DISABLE,
46
    VDAGENTD_CLIENT_DISCONNECTED,  /* daemon -> client */
47
    VDAGENTD_GRAPHICS_DEVICE_INFO,  /* daemon -> client */
Hans de Goede's avatar
Hans de Goede committed
48
    VDAGENTD_NO_MESSAGES /* Must always be last */
49 50 51 52 53
};

struct vdagentd_guest_xorg_resolution {
    int width;
    int height;
54 55
    int x;
    int y;
56
    int display_id;
57 58 59
};

#endif