~ubuntu-branches/ubuntu/raring/freerdp/raring

« back to all changes in this revision

Viewing changes to include/freerdp/kbd.h

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2010-06-23 21:39:09 UTC
  • Revision ID: james.westby@ubuntu.com-20100623213909-bb9pvvv03913tdv6
Tags: upstream-0.7.1
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- c-basic-offset: 8 -*-
 
2
   FreeRDP: A Remote Desktop Protocol client.
 
3
   User interface services - X keyboard mapping using XKB
 
4
 
 
5
   Copyright (C) Marc-Andre Moreau <marcandre.moreau@gmail.com> 2009
 
6
 
 
7
   This program is free software; you can redistribute it and/or modify
 
8
   it under the terms of the GNU General Public License as published by
 
9
   the Free Software Foundation; either version 2 of the License, or
 
10
   (at your option) any later version.
 
11
 
 
12
   This program is distributed in the hope that it will be useful,
 
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
   GNU General Public License for more details.
 
16
 
 
17
   You should have received a copy of the GNU General Public License
 
18
   along with this program; if not, write to the Free Software
 
19
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
*/
 
21
 
 
22
#ifndef __FREERDP_KBD_H
 
23
#define __FREERDP_KBD_H
 
24
 
 
25
#define RDP_KEYBOARD_LAYOUT_TYPE_STANDARD   1
 
26
#define RDP_KEYBOARD_LAYOUT_TYPE_VARIANT    2
 
27
#define RDP_KEYBOARD_LAYOUT_TYPE_IME        4
 
28
 
 
29
typedef struct rdp_keyboard_layout
 
30
{
 
31
        unsigned int code;
 
32
        char name[50];
 
33
} rdpKeyboardLayout;
 
34
 
 
35
rdpKeyboardLayout *
 
36
freerdp_kbd_get_layouts(int types);
 
37
unsigned int
 
38
freerdp_kbd_init(unsigned int keyboard_layout_id);
 
39
int
 
40
freerdp_kbd_get_scancode_by_keycode(uint8 keycode, int * flags);
 
41
int
 
42
freerdp_kbd_get_scancode_by_virtualkey(int vkcode);
 
43
 
 
44
#endif // __FREERDP_KBD_H
 
45