VirtualBox

source: vbox/trunk/include/VBox/VBoxKeyboard.h@ 29866

最後變更 在這個檔案從29866是 29654,由 vboxsync 提交於 15 年 前

FE/Qt and Common: move the X11 keyboard library out of the GUI

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * X11 keyboard driver interface
5 *
6 */
7
8/*
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library 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 GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24/*
25 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
26 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
27 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
28 * a choice of LGPL license versions is made available with the language indicating
29 * that LGPLv2 or any later version may be used, or where a choice of which version
30 * of the LGPL is applied is otherwise unspecified.
31 */
32
33#ifndef __H_KEYBOARD
34#define __H_KEYBOARD
35
36#include <X11/Xlib.h>
37
38/* Exported definitions */
39#undef CCALL
40#ifdef __cplusplus
41# define CCALL "C"
42#else
43# define CCALL
44#endif
45#ifdef VBOX_HAVE_VISIBILITY_HIDDEN
46extern CCALL __attribute__((visibility("default"))) unsigned *X11DRV_getKeyc2scan(void);
47extern CCALL __attribute__((visibility("default"))) unsigned X11DRV_InitKeyboard(Display *dpy, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2]);
48extern CCALL __attribute__((visibility("default"))) unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code);
49#else
50extern CCALL unsigned *X11DRV_getKeyc2scan(void);
51extern CCALL unsigned X11DRV_InitKeyboard(Display *dpy, unsigned *byLayoutOK, unsigned *byTypeOK, int (*remapScancodes)[2]);
52extern CCALL unsigned X11DRV_KeyEvent(Display *dpy, KeyCode code);
53#endif
54
55#endif /* __H_KEYBOARD */
56
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette