uploaded spice-vdagent
[platform/adaptation/emulator/spice-vdagent.git] / src / vdagentd-uinput.h
1 /*  vdagentd-uinput.c vdagentd uinput handling header
2
3     Copyright 2010-2012 Red Hat, Inc.
4
5     Red Hat Authors:
6     Hans de Goede <hdegoede@redhat.com>
7     Gerd Hoffmann <kraxel@redhat.com>
8
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.
13
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.
18
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/>.
21 */
22 #ifndef __VDAGENTD_UINPUT_H
23 #define __VDAGENTD_UINPUT_H
24
25 #include <stdio.h>
26 #include "vdagentd-proto.h"
27
28 struct vdagentd_uinput;
29
30 struct vdagentd_uinput *vdagentd_uinput_create(const char *devname,
31     int width, int height,
32     struct vdagentd_guest_xorg_resolution *screen_info, int screen_count,
33     int debug, int fake);
34 void vdagentd_uinput_destroy(struct vdagentd_uinput **uinputp);
35
36 void vdagentd_uinput_do_mouse(struct vdagentd_uinput **uinputp,
37         VDAgentMouseState *mouse);
38 void vdagentd_uinput_update_size(struct vdagentd_uinput **uinputp,
39         int width, int height,
40         struct vdagentd_guest_xorg_resolution *screen_info,
41         int screen_count);
42
43 #endif